diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-24 21:46:44 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-27 14:01:28 +0200 |
commit | f7c99838e25742fede0532b695a0e899c253e035 (patch) | |
tree | 7087a3da328ea55e85bdae2d9d741f5d2a6c306c /tools/nimgrep.nim | |
parent | 25e6c53bb5575587f0ef8bb17ef4b6f25e046f3e (diff) | |
download | Nim-f7c99838e25742fede0532b695a0e899c253e035.tar.gz |
nimgrep: fixes the -w option
Diffstat (limited to 'tools/nimgrep.nim')
-rw-r--r-- | tools/nimgrep.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim index a5d29f13f..e79b32377 100644 --- a/tools/nimgrep.nim +++ b/tools/nimgrep.nim @@ -342,7 +342,7 @@ else: if optIgnoreStyle in options: pattern = styleInsensitive(pattern) if optWord in options: - pattern = r"\b (:?" & pattern & r") \b" + pattern = r"\b(:?" & pattern & r")\b" if {optIgnoreCase, optIgnoreStyle} * options != {}: reflags.incl reIgnoreCase let rep = re(pattern, reflags) |