This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git
The following commit(s) were added to refs/heads/master by this push:
new 26cf25b Typo
26cf25b is described below
commit 26cf25b51342bbb1d3d193e9a8560dceb8ac0f1a
Author: Sebb <[email protected]>
AuthorDate: Mon Jul 27 16:27:40 2020 +0100
Typo
---
.../org/apache/commons/validator/routines/InetAddressValidator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/validator/routines/InetAddressValidator.java
b/src/main/java/org/apache/commons/validator/routines/InetAddressValidator.java
index b265cc1..e8f1c05 100644
---
a/src/main/java/org/apache/commons/validator/routines/InetAddressValidator.java
+++
b/src/main/java/org/apache/commons/validator/routines/InetAddressValidator.java
@@ -149,7 +149,7 @@ public class InetAddressValidator implements Serializable {
} else if (parts.length == 2){
// The id syntax is implemenatation independent, but it presumably
cannot allow:
// whitespace, '/' or '%'
- if (!parts[1].matches("[^\s/%]+")) {
+ if (!parts[1].matches("[^\\s/%]+")) {
return false; // invalid id
}
}