Remove regex dependency

This commit is contained in:
Ganesh Viswanathan 2019-10-07 14:51:00 -07:00
commit d9350cf47e

View file

@ -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: