mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Unescape slashes in regexps
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user