summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-28 15:13:44 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-28 15:13:44 +0200
commitf64f9e50cca38db24f68ee70d979fd55b1c49868 (patch)
tree19681dd716159a57c6863c182c85920755c6c3a3 /lib/impure
parent13a380bca6d64310eb1383434519b153f1b48e57 (diff)
downloadNim-f64f9e50cca38db24f68ee70d979fd55b1c49868.tar.gz
correct comparisons for nil strings/seqs
Diffstat (limited to 'lib/impure')
-rw-r--r--lib/impure/nre.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim
index 3d4afc0ae..582f5ab3b 100644
--- a/lib/impure/nre.nim
+++ b/lib/impure/nre.nim
@@ -645,7 +645,6 @@ template replaceImpl(str: string, pattern: Regex,
     let bounds = match.matchBounds
     result.add(str.substr(lastIdx, bounds.a - 1))
     let nextVal = replacement
-    assert(nextVal != nil)
     result.add(nextVal)
 
     lastIdx = bounds.b + 1