diff options
| author | data-man <datamanrb@gmail.com> | 2018-07-15 07:49:05 +0300 |
|---|---|---|
| committer | data-man <datamanrb@gmail.com> | 2018-07-15 07:49:05 +0300 |
| commit | f8f918642964f60cee6c8dd5ba9fe8390b8ee369 (patch) | |
| tree | 58c919f8bc8fcd38b76e714ffffb4e5f691f722b /src | |
| parent | 43320e31a17079754150f51c44543ec7033e35ed (diff) | |
| download | nimgen-f8f918642964f60cee6c8dd5ba9fe8390b8ee369.tar.gz nimgen-f8f918642964f60cee6c8dd5ba9fe8390b8ee369.zip | |
Use sanitizePath
Diffstat (limited to 'src')
| -rw-r--r-- | src/nimgen/external.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nimgen/external.nim b/src/nimgen/external.nim index c336f0a..350c841 100644 --- a/src/nimgen/external.nim +++ b/src/nimgen/external.nim @@ -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 |
