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

Unified Diff: lib/common.js

Issue 29460576: Issue 5079 - Turn elemHideEmulation into a CommonJS module (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Updated patch. Fails for now Created Aug. 10, 2017, 2:42 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 | « chrome/content/.eslintrc.json ('k') | lib/content/elemHideEmulation.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
@@ -43,10 +43,9 @@
// process anchor at expression end
.replace(/\\\|$/, "$")
// remove leading wildcards
.replace(/^(\.\*)/, "")
// remove trailing wildcards
.replace(/(\.\*)$/, "");
}
-if (typeof exports != "undefined")
- exports.filterToRegExp = filterToRegExp;
+exports.filterToRegExp = filterToRegExp;
« no previous file with comments | « chrome/content/.eslintrc.json ('k') | lib/content/elemHideEmulation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld