Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array arguments incorrectly parsed #7

Open
seanlinsley opened this issue May 20, 2013 · 1 comment
Open

Array arguments incorrectly parsed #7

seanlinsley opened this issue May 20, 2013 · 1 comment

Comments

@seanlinsley
Copy link

This code prevents single-element arrays from being passed as an argument.

if args_exp && args_exp.first == :array # FIX
  processed = "#{process(args_exp)[1..-2]}"
else
  processed = process args_exp
end

A simple example:

[3] | [4]

Changing it to a one-liner works just fine, and the tests pass :)

processed = process args_exp

Does anyone know what that conditional was supposed to fix? I can't seem to find an example.

@kronn
Copy link
Collaborator

kronn commented Jun 10, 2013

Hard to say, as it's hidden in the initial commit, which is 5 years in the past.

@svenfuchs, can you remember the reason for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants