Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.7
-
None
-
Important
Description
this infinite loop can be reproduced with this unit test:
@Test public void testWrapAtStartAndEnd() { assertThat(WordUtils.wrap("nabcdefabcdefn", 2, "\n", false, "(?=n)")).isEqualTo("\nabcdefabcdef\n"); }
Attachments
Issue Links
- is related to
-
TEXT-111 WordUtils.wrap must calculate offset increment from wrapOn pattern length
- Resolved
- links to