You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/mapper-patterned-text/src/main/java/org/elasticsearch/xpack/patternedtext/PatternedTextValueProcessor.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,8 @@ public static boolean isIpv4_manual_iterative(String text) {
187
187
returnfalse;
188
188
}
189
189
octet = 0;
190
-
} elseif (Character.isDigit(c)) {
190
+
} elseif ('0' <= c && c <= '9') {
191
+
// Character.isDigit(c) is invalid for IPs and inconsistent with the calculation of the numeric value of the character
0 commit comments