mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Escape "." also for file://.
This commit is contained in:
parent
254f255afe
commit
56ff521812
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ const matchPatternToRegExp = function(pattern) {
|
|||
// special handling of file:// since there is no host
|
||||
if (pattern.startsWith('file://')) {
|
||||
let regex = '^';
|
||||
pattern = pattern.replace(/\./g, '\\.');
|
||||
if (pattern.endsWith('*')) {
|
||||
regex += pattern.slice(0, -1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue