Mercurial > hg > Applications > Grep
diff regexParser/regexParser.cc @ 317:fa590a7272ae
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 08 May 2016 11:40:38 +0900 |
parents | a4484c02cba5 |
children | a1b65d39b947 |
line wrap: on
line diff
--- a/regexParser/regexParser.cc Sat May 07 19:41:48 2016 +0900 +++ b/regexParser/regexParser.cc Sun May 08 11:40:38 2016 +0900 @@ -76,7 +76,7 @@ while (ri->tokenType == 'a') { token(ri); } - cc->cond.w.length = ri->ptr - word; + cc->cond.w.length = ri->ptr - word - 1; if (cc->cond.w.length > 1) cc->cond.w.word = word; } else