Skip to content

Commit

Permalink
params parser update for integer
Browse files Browse the repository at this point in the history
  • Loading branch information
sthajay committed Feb 20, 2023
1 parent 54b4fd7 commit 1132f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/comfortable_mexican_sofa/content/params_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def tokenize(args_string)
tokens <<
if (t = ss.scan(STRING_LITERAL)) then [:string, t[1...-1]]
elsif (t = ss.scan(HASH_KEY)) then [:hash_key, t[0...-1]]
elsif (t = ss.scan(IDENTIFIER)) then [:string, t]
elsif (t = ss.scan(INTEGER)) then [:string, t.to_i]
elsif (t = ss.scan(IDENTIFIER)) then [:string, t]
elsif (t = ss.scan(HASH_OPEN)) then [:hash_open, t]
elsif (t = ss.scan(HASH_CLOSE)) then [:hash_close, t]
elsif (t = ss.scan(ARRAY_OPEN)) then [:array_open, t]
Expand Down

0 comments on commit 1132f21

Please sign in to comment.