Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


/=/ Syntax bug #14

merged 1 commit into from

2 participants


Fix a little bug, where expression like "a=b=c".split(/=/) breaks the text parser, because the /= is interpreted as operator assignment and the rest as regular expression.

@JEG2 JEG2 merged commit a960c1b into from

Your regex didn't work like you think it did. In English, your expression meant "the beginning of a line, followed by a parenthesis, followed by /=" so it broke matching the real operator.

I fixed it with a followup commit using a look-behind, just in case you are curios.

Thanks for the fix.


Thanks for explanation!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 17, 2011
  1. @tlewin
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Syntaxes/Ruby.plist
2  Syntaxes/Ruby.plist
@@ -553,7 +553,7 @@
<string>Needs higher precidence than regular expressions.</string>
- <string>/=</string>
+ <string>^\(/=</string>
Something went wrong with that request. Please try again.