You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the command rg -w 'aa|ee|ii|oo|uu' incorrectly matches foo and aardvark.
It appears that -w is implemented by surrounding the pattern with \b, so the above is equivalent to \baa|ee|ii|oo|uu\b, when it should be equivalent to \baa\b|\bee\b|\bii\b|\boo\b|\buu\b or \b(aa|ee|ii|oo|uu)\b.
The text was updated successfully, but these errors were encountered:
For example, the command
rg -w 'aa|ee|ii|oo|uu'
incorrectly matchesfoo
andaardvark
.It appears that
-w
is implemented by surrounding the pattern with\b
, so the above is equivalent to\baa|ee|ii|oo|uu\b
, when it should be equivalent to\baa\b|\bee\b|\bii\b|\boo\b|\buu\b
or\b(aa|ee|ii|oo|uu)\b
.The text was updated successfully, but these errors were encountered: