From 58186f6c1d5e22efcf8f384af2feefbedab7c365 Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Wed, 4 Mar 2015 03:30:43 +0100 Subject: Replaced deprecated repeatChar() with repeat() or spaces(). --- lib/impure/re.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/impure/re.nim') 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. -- cgit 1.4.1-2-gfad0