Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/snippets.js

Issue 29843588: Issue 6823 - Remove unnecessary usage of /u flag (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created July 31, 2018, 8:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/snippets.js
===================================================================
--- a/lib/snippets.js
+++ b/lib/snippets.js
@@ -124,17 +124,17 @@
else if (character == "\\")
{
escape = true;
}
else if (character == "'")
{
withinQuotes = !withinQuotes;
}
- else if (withinQuotes || character != ";" && !/\s/u.test(character))
+ else if (withinQuotes || character != ";" && !/\s/.test(character))
{
argument += character;
}
else
{
if (argument)
{
call.push(argument);
« no previous file with comments | « lib/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld