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
Comment by peterflynn Thursday Apr 04, 2013 at 03:55 GMT
I think you could use regular lookahead: .replace(/-(?!$)/g, "+")
This expression seems like a closer match to what we're trying to accomplish anyway: we don't care about doubled "--"s so much as we care about "-"s that are the last char in the string (i.e. "-"s that are the keystroke rather than the delimiter).
Wednesday Apr 03, 2013 at 14:13 GMT
Originally opened as adobe/brackets#3331
Fix for #3041 by mimiking a negative lookbehind.
WebsiteDeveloper included the following code: https://github.com/adobe/brackets/pull/3331/commits
The text was updated successfully, but these errors were encountered: