File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
exist-core/src/main/java/org/exist/xquery/functions/integer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ public abstract class IntegerPicture {
49
49
50
50
final static BigInteger TEN = BigInteger .valueOf (10L );
51
51
52
- final static Pattern decimalDigitPattern = Pattern .compile ("^((\\ p{Nd}|#|[^\\ p{N}\\ p{L}])+)$" , Pattern .UNICODE_CHARACTER_CLASS );
52
+ //This contains \\v (vertical whitespace characters) so anything with vertical white space isn't a pattern
53
+ //It also disallows 0 instances of the pattern
54
+ //When decimal digit pattern doesn't match, we end up falling into a standard default.
55
+ final static Pattern decimalDigitPattern = Pattern .compile ("^((\\ p{Nd}|#|[^\\ p{N}\\ p{L}\\ v])+)$" , Pattern .UNICODE_CHARACTER_CLASS );
53
56
final static Pattern invalidDigitPattern = Pattern .compile ("(\\ p{Nd})" );
54
57
55
58
/**
You can’t perform that action at this time.
0 commit comments