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

Unified Diff: lib/content/elemHideEmulation.js

Issue 30006562: Issue 7268 - Unescape { and } for :-abp-contains() (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Feb. 13, 2019, 4:35 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/content/elemHideEmulation.js
===================================================================
--- a/lib/content/elemHideEmulation.js
+++ b/lib/content/elemHideEmulation.js
@@ -344,17 +344,18 @@
class ContainsSelector
{
constructor(textContent)
{
this.dependsOnDOM = true;
this.dependsOnCharacterData = true;
- this._regexp = makeRegExpParameter(textContent);
+ this._regexp = makeRegExpParameter(
+ textContent.replace("\\7B ", "{").replace("\\7D ", "}"));
}
*getSelectors(prefix, subtree, styles, targets)
{
for (let element of this.getElements(prefix, subtree, styles, targets))
yield [makeSelector(element), subtree];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld