@ 201216.1

160606.1.1 · 1903dca0267f22342a76d7fd55aeb6ad8dae1acc

Fix --word-regexp not applying to alternates

reading declarations

Changes to tests/word_regexp.t. All files

tests/word_regexp.t

new file mode 100644@@ -0,0 +1,12 @@+Setup:++  $ . $TESTDIR/setup.sh+  $ echo 'foo' > blah.txt+  $ echo 'bar' >> blah.txt+  $ echo 'foobar' >> blah.txt++Word regexp:++  $ ag -w 'foo|bar' ./+  blah.txt:1:foo+  blah.txt:2:bar