This commit is contained in:
Gary Gregory 2016-10-23 10:36:27 -07:00
commit 8c5335e6c6
1 changed files with 1 additions and 1 deletions

View File

@ -5143,7 +5143,7 @@ public class StringUtils {
* @since 3.5 Changed {@code null} reference passed to this method is a no-op.
*/
public static String replacePattern(final String source, final String regex, final String replacement) {
if (source == null || regex == null|| replacement == null ) {
if (source == null || regex == null || replacement == null) {
return source;
}
return Pattern.compile(regex, Pattern.DOTALL).matcher(source).replaceAll(replacement);