Use sanitizePath
This commit is contained in:
parent
43320e31a1
commit
f8f9186429
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ proc runPreprocess*(file, ppflags, flags: string, inline: bool): string =
|
|||
if line.strip() != "":
|
||||
if line[0] == '#' and not line.contains("#pragma"):
|
||||
start = false
|
||||
if sfile in line.multiReplace([("\\", "/"), ("//", "/")]):
|
||||
if sfile in line.sanitizePath:
|
||||
start = true
|
||||
if not ("\\" in line) and not ("/" in line) and extractFilename(sfile) in line:
|
||||
start = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue