[ 
https://issues.apache.org/jira/browse/TEXT-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno P. Kinoshita updated TEXT-152:
------------------------------------
    Assignee: Bruno P. Kinoshita

> 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
>            Assignee: Bruno P. Kinoshita
>            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)

Reply via email to