summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-03-04 16:42:13 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-03-04 16:42:13 +0100
commit1ca2db0273938930f71fb0e85569a1df55b195fb (patch)
treec89040a351ec52641a1f36d02bf95860442a8489 /lib/impure/re.nim
parent32126aaad6db85159bdaa1e71e50a23622fe1452 (diff)
parentb902ea887b7717f658661ae5887602e6e2b61a3a (diff)
downloadNim-1ca2db0273938930f71fb0e85569a1df55b195fb.tar.gz
Merge pull request #2260 from oderwat/upd-deprecated-repeats
Updates to remove deprecated repeatStr() and repeatChar() from all files.
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 dcdc2f07e..921a24fd1 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.