Skip to content

Commit 32f40dc

Browse files
committed
---
yaml --- r: 318963 b: refs/heads/master-rebranch c: 962ea9b h: refs/heads/master i: 318961: 111b5b2 318959: 53f859c
1 parent 147a977 commit 32f40dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14571457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14581458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14591459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460-
refs/heads/master-rebranch: 803d48eaf5cbf62f5951c1891b1e32ebbdfb8714
1460+
refs/heads/master-rebranch: 962ea9b026c0646aa08eae97d768526615faf73c

branches/master-rebranch/utils/PathSanitizingFileCheck

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from __future__ import print_function
1313

1414
import argparse
15+
import re
1516
import subprocess
1617
import sys
1718

@@ -47,7 +48,7 @@ constants.""")
4748
stdin = sys.stdin.read()
4849
for s in args.sanitize_strings:
4950
replacement, pattern = s.split('=', 1)
50-
stdin = stdin.replace(pattern, replacement)
51+
stdin = re.sub(re.sub(r'/', r'[/\\\\]', pattern), replacement, stdin)
5152

5253
p = subprocess.Popen(
5354
[args.file_check_path] + unknown_args, stdin=subprocess.PIPE)

0 commit comments

Comments
 (0)