[BUG] :dstr and :dregx with immediate #{''} not in sexp
Reported by Eero Saynatkari | December 4th, 2007 @ 10:26 PM | in 1.0 preview
Any dynamic string or regexp that immediately starts with an (interpolation) that is an empty string literal causes the entire rest of that string to be ignored.
> "#{''}"
# => ""
> " #{''}"
# => " "
> "#{''} foo"
# => ""
> " #{''} foo"
# => " foo"
> /#{''} foo/
# => //
> / #{''} foo/
# => / foo/
I am not certain how worthwhile it is to try to fix this issue since it is A) very likely that this code does not appear in the wild and B) it requires a trip to grammar.c.
Comments and changes to this ticket
-
Eero Saynatkari January 20th, 2008 @ 04:21 PM
- → Title changed from :dstr and :dregx with immediate #{''} not in sexp to [BUG] :dstr and :dregx with immediate #{''} not in sexp
- → State changed from new to open
-
Ryan Davis February 29th, 2008 @ 06:54 PM
- → Milestone changed from 1.0 to 1.0 preview
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
