@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2008 - 2010 the original author or authors .
* Copyright 2008 - 2012 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -35,7 +35,7 @@ import org.springframework.util.StringUtils;
@@ -35,7 +35,7 @@ import org.springframework.util.StringUtils;
* /
public class OrderBySource {
private static final String BLOCK_SPLIT = "(?<=Asc|Desc)(?=[A-Z] )" ;
private static final String BLOCK_SPLIT = "(?<=Asc|Desc)(?=\\p{Lu} )" ;
private static final Pattern DIRECTION_SPLIT = Pattern . compile ( "(.+)(Asc|Desc)$" ) ;
private final List < Order > orders ;
@ -107,4 +107,4 @@ public class OrderBySource {
@@ -107,4 +107,4 @@ public class OrderBySource {
public String toString ( ) {
return "Order By " + StringUtils . collectionToDelimitedString ( orders , ", " ) ;
}
}
}