fix Bug TDI-24223: Duplicate methods EREPLACE and CHANGE in system routine "StringHandling"
https://jira.talendforge.org/browse/TDI-24223 git-svn-id: http://talendforge.org/svn/tos/trunk@95870 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
@@ -168,10 +168,7 @@ public class StringHandling {
|
||||
* {example} EREPLACE("hello world!","world","guy") # hello world
|
||||
*/
|
||||
public static String EREPLACE(String oldStr, String newStr, String replacement) {
|
||||
if (oldStr == null || newStr == null || replacement == null)
|
||||
return oldStr;
|
||||
else
|
||||
return oldStr.replaceAll(newStr, replacement);
|
||||
return CHANGE(oldStr, newStr, replacement);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user