normalize -abp-has to has for better duplicate detection with uBO-specific syntax

This commit is contained in:
Raymond Hill 2018-08-24 18:28:06 -04:00
parent 2663c19a81
commit bd3922c580
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1,7 +1,7 @@
/******************************************************************************* /*******************************************************************************
uBlock Origin - a browser extension to block requests. uBlock Origin - a browser extension to block requests.
Copyright (C) 2017-2018 Raymond Hill Copyright (C) 2017-present Raymond Hill
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -219,8 +219,8 @@
// https://github.com/gorhill/uBlock/issues/2793 // https://github.com/gorhill/uBlock/issues/2793
var normalizedOperators = new Map([ var normalizedOperators = new Map([
[ ':-abp-contains', ':has-text' ], [ ':-abp-contains', ':has-text' ],
[ ':-abp-has', ':if' ], [ ':-abp-has', ':has' ],
[ ':contains', ':has-text' ] [ ':contains', ':has-text' ],
]); ]);
var compileArgument = new Map([ var compileArgument = new Map([