mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix path issues in Windows
This commit is contained in:
@@ -258,6 +258,10 @@ module.exports = class RipgrepDirectorySearcher {
|
||||
const output = []
|
||||
|
||||
for (let pattern of globs) {
|
||||
// we need to replace path separators by slashes since globs should
|
||||
// always use always slashes as path separators.
|
||||
pattern = pattern.replace(new RegExp(`\\${path.sep}`, 'g'), '/')
|
||||
|
||||
if (pattern.length === 0) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user