nimgrep: fixes the -w option
This commit is contained in:
parent
25e6c53bb5
commit
f7c99838e2
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ else:
|
||||||
if optIgnoreStyle in options:
|
if optIgnoreStyle in options:
|
||||||
pattern = styleInsensitive(pattern)
|
pattern = styleInsensitive(pattern)
|
||||||
if optWord in options:
|
if optWord in options:
|
||||||
pattern = r"\b (:?" & pattern & r") \b"
|
pattern = r"\b(:?" & pattern & r")\b"
|
||||||
if {optIgnoreCase, optIgnoreStyle} * options != {}:
|
if {optIgnoreCase, optIgnoreStyle} * options != {}:
|
||||||
reflags.incl reIgnoreCase
|
reflags.incl reIgnoreCase
|
||||||
let rep = re(pattern, reflags)
|
let rep = re(pattern, reflags)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue