diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-20 18:23:54 -0500 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-20 18:23:54 -0500 |
commit | 256435e8e3c0ff3f3d0837ef5d899ba16446c6c9 (patch) | |
tree | 86f1beff95653ed7eea1a2550366581157ed2a83 /src | |
parent | 7c24290eec2395432b181f3592a578f3c012c095 (diff) | |
download | Nim-256435e8e3c0ff3f3d0837ef5d899ba16446c6c9.tar.gz |
Fix incorrect property check
Diffstat (limited to 'src')
-rw-r--r-- | src/nre.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nre.nim b/src/nre.nim index 8bec3d990..47e374978 100644 --- a/src/nre.nim +++ b/src/nre.nim @@ -327,7 +327,7 @@ proc match*(str: string, pattern: Regex, start = 0, endpos = -1): RegexMatch = iterator findIter*(str: string, pattern: Regex, start = 0, endpos = -1): RegexMatch = # see pcredemo for explaination let matchesCrLf = pattern.matchesCrLf() - let unicode = bool(getinfo[cint](pattern, pcre.INFO_OPTIONS) and pcre.UTF8) + let unicode = (getinfo[cint](pattern, pcre.INFO_OPTIONS) and pcre.UTF8) > 0 let endpos = if endpos == -1: str.len else: endpos var offset = start |