You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (JIRA)" <ji...@apache.org> on 2019/03/04 20:33:00 UTC
[jira] [Resolved] (TEXT-152) infinite loop in WordUtils.wrap
[ https://issues.apache.org/jira/browse/TEXT-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno P. Kinoshita resolved TEXT-152.
-------------------------------------
Resolution: Fixed
> infinite loop in WordUtils.wrap
> -------------------------------
>
> Key: TEXT-152
> URL: https://issues.apache.org/jira/browse/TEXT-152
> Project: Commons Text
> Issue Type: Bug
> Affects Versions: 1.7
> Reporter: Carlos
> Priority: Critical
> Fix For: 1.7
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> this infinite loop can be reproduced with this unit test:
>
> {code:java}
> @Test
> public void testWrapAtStartAndEnd() {
> assertThat(WordUtils.wrap("nabcdefabcdefn", 2, "\n", false, "(?=n)")).isEqualTo("\nabcdefabcdef\n");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)