File tree 1 file changed +4
-4
lines changed
engine/src/main/java/org/hibernate/validator/internal/engine/path 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ public final class PathImpl implements Path, Serializable {
41
41
*
42
42
* @see <a href="http://www.regexplanet.com/simple/index.jsp">Regular expression tester</a>
43
43
*/
44
- private static final String LEADING_PROPERTY_GROUP = "[^\\ [\\ .]+" ; // everything up to a [ or .
45
- private static final String OPTIONAL_INDEX_GROUP = "\\ [(\\ w*)\\ ]" ;
46
- private static final String REMAINING_PROPERTY_STRING = "\\ .(.* )" ; // processed recursively
44
+ private static final String LEADING_PROPERTY_GROUP = "[^\\ [\\ .]++ " ; // everything up to a [ or .
45
+ private static final String OPTIONAL_INDEX_GROUP = "\\ [(\\ w*+ )\\ ]" ;
46
+ private static final String REMAINING_PROPERTY_STRING = "\\ .(.++ )" ; // processed recursively
47
47
48
- private static final Pattern PATH_PATTERN = Pattern .compile ( "(" + LEADING_PROPERTY_GROUP + ")(" + OPTIONAL_INDEX_GROUP + ")?(" + REMAINING_PROPERTY_STRING + ")*" );
48
+ private static final Pattern PATH_PATTERN = Pattern .compile ( "(" + LEADING_PROPERTY_GROUP + ")(" + OPTIONAL_INDEX_GROUP + ")?(" + REMAINING_PROPERTY_STRING + ")*+ " );
49
49
private static final int PROPERTY_NAME_GROUP = 1 ;
50
50
private static final int INDEXED_GROUP = 2 ;
51
51
private static final int INDEX_GROUP = 3 ;
You can’t perform that action at this time.
0 commit comments