mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-07 18:10:24 +00:00
[clang-format] Handle tabs in file path for git-clang-format
This commit is contained in:
parent
a53d940cee
commit
c31bc7bdf8
@ -347,7 +347,7 @@ def extract_lines(patch_file):
|
||||
line = convert_string(line)
|
||||
match = re.search(r'^\+\+\+\ [^/]+/(.*)', line)
|
||||
if match:
|
||||
filename = match.group(1).rstrip('\r\n')
|
||||
filename = match.group(1).rstrip('\r\n\t')
|
||||
match = re.search(r'^@@ -[0-9,]+ \+(\d+)(,(\d+))?', line)
|
||||
if match:
|
||||
start_line = int(match.group(1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user