From a80617fd4c01839824b22d1879c69c092886d835 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Sun, 18 Jan 2015 12:41:43 -0500 Subject: [PATCH] Disable extended default --- src/nre.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nre.nim b/src/nre.nim index fbc143cd12..6cc9bfddfe 100644 --- a/src/nre.nim +++ b/src/nre.nim @@ -261,7 +261,7 @@ proc getNameToNumberTable(pattern: Regex): Table[string, int] = result[name] = num -proc initRegex*(pattern: string, options = "Sx"): Regex = +proc initRegex*(pattern: string, options = "S"): Regex = new(result, destroyRegex) result.pattern = pattern @@ -286,7 +286,7 @@ proc initRegex*(pattern: string, options = "Sx"): Regex = result.captureNameToId = result.getNameToNumberTable() -proc re*(pattern: string, options = "Sx"): Regex = initRegex(pattern, options) +proc re*(pattern: string, options = "S"): Regex = initRegex(pattern, options) # }}} proc matchImpl(str: string, pattern: Regex, start, endpos: int, flags: int): RegexMatch =