mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-12 22:50:54 +03:00
Unescape slashes in regexps
This commit is contained in:
parent
c3845dd902
commit
411e2a95fb
@ -344,6 +344,10 @@ module.exports = class RipgrepDirectorySearcher {
|
||||
return '\\-\\-'
|
||||
}
|
||||
|
||||
// ripgrep is quite picky about unnecessarily escaped sequences, so we need to unescape
|
||||
// them: https://github.com/BurntSushi/ripgrep/issues/434.
|
||||
regexpStr = regexpStr.replace(/\\\//g, '/')
|
||||
|
||||
return regexpStr
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user