DATACMNS-1304 - PropertyPath now supports properties with all uppercase endings.

Original pull request: #289.
This commit is contained in:
Mariusz Mączkowski
2018-04-24 21:44:25 +02:00
committed by Oliver Gierke
parent fc2135df3d
commit 1da969db0a
2 changed files with 17 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ import org.springframework.util.StringUtils;
* @author Oliver Gierke
* @author Christoph Strobl
* @author Mark Paluch
* @author Mariusz Mączkowski
*/
@EqualsAndHashCode
public class PropertyPath implements Streamable<PropertyPath> {
@@ -401,7 +402,7 @@ public class PropertyPath implements Streamable<PropertyPath> {
exception = e;
}
Pattern pattern = Pattern.compile("\\p{Lu}+\\p{Ll}*$");
Pattern pattern = Pattern.compile("\\p{Lu}\\p{Ll}*$");
Matcher matcher = pattern.matcher(source);
if (matcher.find() && matcher.start() != 0) {