[ 
https://issues.apache.org/jira/browse/TEXT-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16782877#comment-16782877
 ] 

Carlos commented on TEXT-152:
-----------------------------

while playing with the methods involver in TEXT-111 I discovered this issue.

> 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: 10m
>  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