diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-28 15:13:44 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-28 15:13:44 +0200 |
commit | f64f9e50cca38db24f68ee70d979fd55b1c49868 (patch) | |
tree | 19681dd716159a57c6863c182c85920755c6c3a3 /lib/impure | |
parent | 13a380bca6d64310eb1383434519b153f1b48e57 (diff) | |
download | Nim-f64f9e50cca38db24f68ee70d979fd55b1c49868.tar.gz |
correct comparisons for nil strings/seqs
Diffstat (limited to 'lib/impure')
-rw-r--r-- | lib/impure/nre.nim | 1 |
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 |