Summary: | Leading "\b" word boundary is ignored | ||
---|---|---|---|
Product: | Regexp | Reporter: | Ed Chidester <echid> |
Component: | Other | Assignee: | Jakarta Notifications Mailing List <notifications> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | dana.peters, shawn_heller |
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Ed Chidester
2001-03-15 09:39:09 UTC
If I understand the code correctly (big if), the following should fix this problem: change RE.java line 1050 from char cLast = ((idx == getParenStart(0)) ? '\n' : search.charAt(idx - 1)); to char cLast = ((idx == 0) ? '\n' : search.charAt(idx - 1)); This is not necessary for posix compliance but if the given fix works I will integrate it. *** Bug 2371 has been marked as a duplicate of this bug. *** ran into this problem personally. I integrated the fix into the src for 1.2 and the patch does work properly. patch added. tests added and tested. closed. |