GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
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.
Fix a little sintax bug, ex: "a=b=c".split(/=/)
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!