Skip to content

Commit

Permalink
RT #122341 [moar,jvm] handle all line separators
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Jul 21, 2014
1 parent 908d8a0 commit f1b098f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -3437,7 +3437,8 @@ public static long iscclass(long cclass, String target, long offset) {
return test == '_' || Character.isLetterOrDigit(test) ? 1 : 0;
case CCLASS_NEWLINE:
return (Character.getType(test) == Character.LINE_SEPARATOR) ||
(test == '\n' || test == '\r' || test == '\u0085')
(test == '\n' || test == '\u000b' || test == '\f' || test == '\r' ||
test == '\u0085' || test == '\u2029')
? 1 : 0;
case CCLASS_ALPHABETIC:
return Character.isAlphabetic(test) ? 1 : 0;
Expand Down
2 changes: 1 addition & 1 deletion tools/build/MOAR_REVISION
@@ -1 +1 @@
2014.07-7-g339d547
2014.07-8-g503f76a

0 comments on commit f1b098f

Please sign in to comment.