Remove regex dependency
This commit is contained in:
parent
42a96bd4bf
commit
d9350cf47e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import macros, regex, strformat
|
import macros, strformat
|
||||||
|
|
||||||
when (NimMajor, NimMinor, NimPatch) >= (0, 19, 9):
|
when (NimMajor, NimMinor, NimPatch) >= (0, 19, 9):
|
||||||
from os import parentDir, getCurrentCompilerExe, DirSep
|
from os import parentDir, getCurrentCompilerExe, DirSep
|
||||||
|
|
@ -59,7 +59,7 @@ proc buildDocs*(files: openArray[string], path: string, baseDir = getProjectPath
|
||||||
getCurrentDir() & $DirSep
|
getCurrentDir() & $DirSep
|
||||||
else:
|
else:
|
||||||
baseDir
|
baseDir
|
||||||
path = baseDir & path.replace(re"[/\\]", $DirSep)
|
path = baseDir & path
|
||||||
defStr = block:
|
defStr = block:
|
||||||
var defStr = ""
|
var defStr = ""
|
||||||
for def in defines:
|
for def in defines:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue