[
https://issues.apache.org/jira/browse/OPENNLP-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656253#comment-17656253
]
Atita Arora edited comment on OPENNLP-1437 at 1/10/23 5:31 PM:
---------------------------------------------------------------
Shall I raise a PR replacing
{code:java}
number = number.trim();
number = removeChar(number, ' ');{code}
with
{code:java}
number = number.replaceAll("\\s", ""); {code}
and delete the method removeChar().
was (Author: aarora):
Shall I raise a PR replacing
{code:java}
number = number.trim();
number = removeChar(number, ' ');{code}
with
{code:java}
number = number.replaceAll(number, " "); {code}
and delete the method removeChar().
> Change removeChar() in NumberUtil.java with String.replaceAll
> -------------------------------------------------------------
>
> Key: OPENNLP-1437
> URL: https://issues.apache.org/jira/browse/OPENNLP-1437
> Project: OpenNLP
> Issue Type: Task
> Reporter: Jeff Zemerick
> Assignee: Atita Arora
> Priority: Major
>
> Change removeChar() in NumberUtil.java with String.replaceAll(). See the
> conversation on the pull request at
> [https://github.com/apache/opennlp/pull/479/files.]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)