Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix to character class handling.
With this, NQP self-hosted on JVM can do tests 1..20 from t/nqp with
only two failures.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent e556c3d commit 4337905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -2288,7 +2288,7 @@ 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 == '\n' || test == '\r')
? 1 : 0;
case CCLASS_ALPHABETIC:
return Character.isAlphabetic(test) ? 1 : 0;
Expand Down

0 comments on commit 4337905

Please sign in to comment.