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

Unified Diff: lib/common.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 | « no previous file | lib/snippets.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/common.js
===================================================================
--- a/lib/common.js
+++ b/lib/common.js
@@ -144,17 +144,17 @@
scope.pop();
}
else if (!currentScope)
{
// At the top level (not within any scope), count the whitespace if we've
// encountered it. Otherwise if we've hit one of the combinators,
// terminate here; otherwise if we've hit a non-colon character,
// terminate here.
- if (/\s/u.test(character))
+ if (/\s/.test(character))
{
whitespace++;
}
else if ((character == ">" || character == "+" || character == "~") ||
(whitespace > 0 && character != ":"))
{
break;
}
« no previous file with comments | « no previous file | lib/snippets.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld