summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorHans Raaf <hara@oderwat.de>2015-03-04 03:30:43 +0100
committerHans Raaf <hara@oderwat.de>2015-03-04 03:30:43 +0100
commit58186f6c1d5e22efcf8f384af2feefbedab7c365 (patch)
tree4bf717405b6e1fbb21acffb11dd7eda768d75dca /lib/impure/re.nim
parent8f43979cf6308c9d7e14a0d87c0faf227e1c4afe (diff)
downloadNim-58186f6c1d5e22efcf8f384af2feefbedab7c365.tar.gz
Replaced deprecated repeatChar() with repeat() or spaces().
Diffstat (limited to 'lib/impure/re.nim')
-rw-r--r--lib/impure/re.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index 7d5ff8948..7d9e8b3f7 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -66,7 +66,7 @@ proc rawCompile(pattern: string, flags: cint): PPcre =
     offset: cint
   result = pcre.compile(pattern, flags, addr(msg), addr(offset), nil)
   if result == nil:
-    raiseInvalidRegex($msg & "\n" & pattern & "\n" & repeatChar(offset) & "^\n")
+    raiseInvalidRegex($msg & "\n" & pattern & "\n" & spaces(offset) & "^\n")
 
 proc finalizeRegEx(x: Regex) = 
   # XXX This is a hack, but PCRE does not export its "free" function properly.