You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
repl cannot handle single quote in regex, when within a function #5113
This is indeed a bug, and you're not doing anything wrong. For a quick workaround, you can use a backslash to escape the single quote in the regular expression: s=s.replace(/\'/g, '');
Activity
Trott commentedon Feb 6, 2016
This is indeed a bug, and you're not doing anything wrong. For a quick workaround, you can use a backslash to escape the single quote in the regular expression:
s=s.replace(/\'/g, '');But yes, you shouldn't have to do that.
phillipwei commentedon Feb 6, 2016
Thanks for the work around!
silverwind commentedon Feb 10, 2016
Fixed in 211018f!