We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 550f6fb + f074995 commit 7573a64Copy full SHA for 7573a64
utils/PathSanitizingFileCheck
@@ -80,10 +80,9 @@ constants.""")
80
# Since we want to use pattern as a regex in some platforms, we need
81
# to escape it first, and then replace the escaped slash
82
# literal (r'\\/') for our platform-dependent slash regex.
83
- stdin = re.sub(re.sub('\\\\/' if sys.version_info[0] < 3 else r'[/\\]',
+ stdin = re.sub(re.sub(r'\\/' if sys.version_info[0] < 3 else r'/',
84
slashes_re, re.escape(pattern)),
85
- replacement,
86
- stdin)
+ replacement, stdin)
87
88
if args.dry_run:
89
print(stdin)
0 commit comments