uBlock/src/js
Raymond Hill 2e7f1b8d08
Improve validation of synctactically bad regexes
The following regex are not rejected as invalid when
using built-in regex objects:

    /abc]/
    /a7,18}/
    /a{7,18/

However, as per documentation, they are not supposed to
be valid, as `{` and `}` are special characters and as
such should be escaped:

    /abc\]/
    /a7,18\}/
    /a\{7,18/

With this commit, the regexes will additionally be
validated using the regex analyzer library in the editor
to ensure strict regex syntax compliance so as to avoid
what are likely mistakes in regex crafting by authors.
2020-12-28 07:13:57 -05:00
..
codemirror Fix word-based selection in filter list editor/viewer 2020-12-27 09:32:50 -05:00
scriptlets Reset Chromium-specific color-scheme CSS property 2020-12-21 09:20:56 -05:00
wasm Fix edge case involving filter with a single wildcard 2020-06-27 07:58:46 -04:00
1p-filters.js Fix hint helper in element picker's text editor 2020-12-03 07:34:50 -05:00
3p-filters.js Fix regex to validate URL of imported lists 2020-10-23 06:25:08 -04:00
about.js Add new filter option queryprune= 2020-10-31 10:42:53 -04:00
advanced-settings.js Minor code review 2020-04-28 18:39:31 -04:00
asset-viewer.js Fix hint helper in element picker's text editor 2020-12-03 07:34:50 -05:00
assets.js Wait for removal of storage entries to be completed 2020-12-04 06:17:18 -05:00
background.js Dynamically reload 3p css when noop-ing "3rd-party" cell 2020-12-12 14:33:49 -05:00
cachestorage.js Add support for cloud storage compression 2020-08-16 11:59:27 -04:00
click2load.js Fine tune click-to-load widget 2020-11-14 08:34:47 -05:00
cloud-ui.js Add support for removal of cloud storage entries 2020-08-21 09:18:33 -04:00
commands.js Dynamically reload 3p css when noop-ing "3rd-party" cell 2020-12-12 14:33:49 -05:00
console.js Force console output when explicitly requested from dev tools 2020-02-25 11:00:58 -05:00
contentscript.js Fix DOM watcher not reporting removal of elements 2020-12-10 12:51:26 -05:00
contextmenu.js Add support to launch element picker in embedded frames 2020-12-05 15:26:29 -05:00
cosmetic-filtering.js Harden processing of changes in compiled list format 2020-12-08 10:00:47 -05:00
dashboard-common.js Add CoreMirror's code-folding ability to list editor/viewer 2020-07-10 08:01:39 -04:00
dashboard.js Replace old resizing code with CSS flex 2020-04-24 20:10:35 -04:00
document-blocked.js Fix missing magnifier in document-blocked page 2020-12-07 14:32:59 -05:00
dyna-rules.js Emphasize entity portion of hostnames in _"My rules"_ 2020-11-19 11:33:09 -05:00
dynamic-net-filtering.js Output built-in benchmark results regardless of consoleLogLevel 2020-07-02 12:39:40 -04:00
epicker-ui.js Fix auto-completion for epicker in Firefox 2020-12-15 09:38:20 -05:00
fa-icons.js Fix missing magnifier in document-blocked page 2020-12-07 14:32:59 -05:00
filtering-context.js Fix top document partyness 2020-11-01 06:25:26 -05:00
hnswitches.js Enable the blocking of CSP reports by default 2020-12-11 12:34:09 -05:00
hntrie.js Reuse duplicate strings stored in tries 2020-12-04 07:53:01 -05:00
html-filtering.js Fix look-up of specific-generic filters entity-less hostnames 2020-12-14 11:22:08 -05:00
i18n.js Fix layout issue with cloud storage widget 2020-08-21 08:57:47 -04:00
logger-ui-inspector.js Simplify client messaging code 2019-09-19 08:31:38 -04:00
logger-ui.js Improve representation of modifier filters in logger 2020-11-20 07:14:02 -05:00
logger.js Add new filter option queryprune= 2020-10-31 10:42:53 -04:00
lz4.js Add support for cloud storage compression 2020-08-16 11:59:27 -04:00
messaging.js Fix case of scriptlet injection not working about: frames 2020-12-18 12:07:08 -05:00
pagestore.js Add basic compatibility with ABP's rewrite option 2020-12-09 08:16:28 -05:00
popup-fenix.js Improve layout of popup panel when rendered in a tab 2020-10-18 10:00:55 -04:00
popup.js Allow hiding blocked count since install in popup panel 2020-05-01 19:47:01 -04:00
redirect-engine.js Fix comment 2020-12-28 07:07:04 -05:00
reverselookup.js Harden processing of changes in compiled list format 2020-12-08 10:00:47 -05:00
scriptlet-filtering.js Fix case of scriptlet injection not working about: frames 2020-12-18 12:07:08 -05:00
settings.js Split fetching settings/storage used in Settings pane 2020-06-06 08:45:24 -04:00
shortcuts.js Support keyboard shortcut to open popup panel 2019-11-09 09:53:31 -05:00
start.js Mind restore-from-backup for no-csp-reports rule 2020-12-17 08:12:06 -05:00
static-ext-filtering.js Fix the reporting of invalid static extended filters in the logger 2020-07-12 13:00:18 -04:00
static-filtering-parser.js Improve validation of synctactically bad regexes 2020-12-28 07:13:57 -05:00
static-net-filtering.js Improve validation of synctactically bad regexes 2020-12-28 07:13:57 -05:00
storage.js Harden processing of changes in compiled list format 2020-12-08 10:00:47 -05:00
strie.js Reuse duplicate strings stored in tries 2020-12-04 07:53:01 -05:00
tab.js Fix potentially missing context in logger for popup entries 2020-12-26 10:15:07 -05:00
text-encode.js refactor some webRequest-related code (now that firefox legacy is out of the way) 2018-10-28 10:58:25 -03:00
traffic.js Fix bad access to hostname info from filtering context 2020-12-14 08:38:30 -05:00
ublock.js Dynamically reload 3p css when noop-ing "3rd-party" cell 2020-12-12 14:33:49 -05:00
udom.js Disable auto activation of dark theme in next release 2020-11-13 12:15:29 -05:00
uritools.js Add ability to uncloak CNAME records 2019-11-19 12:05:33 -05:00
url-net-filtering.js Fix regression in URL rules validation 2019-07-10 17:24:01 -04:00
utils.js Harden processing of changes in compiled list format 2020-12-08 10:00:47 -05:00
whitelist.js Ensure the bottom of dashboard panes is visible 2020-10-21 12:50:24 -04:00