This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 273a6bd20e2daddd0772a2961c86f56838b6a01a Author: Gary Gregory <[email protected]> AuthorDate: Sat Oct 15 17:54:09 2022 -0400 Fix format typos --- src/main/java/org/apache/commons/lang3/RegExUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/RegExUtils.java b/src/main/java/org/apache/commons/lang3/RegExUtils.java index 36ecf42dc..58fa38c4e 100644 --- a/src/main/java/org/apache/commons/lang3/RegExUtils.java +++ b/src/main/java/org/apache/commons/lang3/RegExUtils.java @@ -353,7 +353,7 @@ public class RegExUtils { * @see java.util.regex.Pattern */ public static String replaceFirst(final String text, final Pattern regex, final String replacement) { - if (text == null || regex == null|| replacement == null ) { + if (text == null || regex == null || replacement == null) { return text; } return regex.matcher(text).replaceFirst(replacement); @@ -405,7 +405,7 @@ public class RegExUtils { * @see java.util.regex.Pattern#DOTALL */ public static String replaceFirst(final String text, final String regex, final String replacement) { - if (text == null || regex == null|| replacement == null ) { + if (text == null || regex == null || replacement == null) { return text; } return text.replaceFirst(regex, replacement);
