You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
convertPathToPattern not converting some\\@directory\\ correctly #452
The problem here is that \\@ is considered an already escaped special character. Otherwise, double character escaping will be applied here.
The goal of this task is to learn how to differentiate between a path separator and a special character, when the special character follows the path separator in the path.
it.only('should convert slashes after the path separator',()=>{assert.strictEqual(util.convertWindowsPathToPattern('\\@'),'/@');assert.strictEqual(util.convertWindowsPathToPattern('\\\\@'),'/\\@');});
And… I'm not sure there is a way to solve this problem.
Activity
AriPerkkio commentedon Jul 29, 2024
I see that https://github.com/mrmlnc/fast-glob?tab=readme-ov-file#convertpathtopatternpath does mention
@and backslash using as espace characters. In this case\\@is not escape for@, right? In\@it would be?mrmlnc commentedon Nov 23, 2024
The problem here is that
\\@is considered an already escaped special character. Otherwise, double character escaping will be applied here.The goal of this task is to learn how to differentiate between a path separator and a special character, when the special character follows the path separator in the path.
And… I'm not sure there is a way to solve this problem.