From 7909e3de17f682d934c1d418a98111e357515400 Mon Sep 17 00:00:00 2001 From: Mike Nolta Date: Fri, 8 Mar 2013 16:41:12 -0500 Subject: [PATCH] fix r"\u2220" bug mentioned in #107 --- base/pcre.jl | 1 + base/regex.jl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base/pcre.jl b/base/pcre.jl index f2ba6f46a95a9..1e04153c1033b 100644 --- a/base/pcre.jl +++ b/base/pcre.jl @@ -15,6 +15,7 @@ const COMPILE_MASK = DOTALL | EXTENDED | FIRSTLINE | + JAVASCRIPT_COMPAT | MULTILINE | NEWLINE_ANY | NEWLINE_ANYCRLF | diff --git a/base/regex.jl b/base/regex.jl index 2e0f714731ccd..5372be6f4375d 100644 --- a/base/regex.jl +++ b/base/regex.jl @@ -2,7 +2,7 @@ include("pcre.jl") -const DEFAULT_OPTS = PCRE.UTF8 +const DEFAULT_OPTS = PCRE.JAVASCRIPT_COMPAT | PCRE.UTF8 type Regex pattern::ByteString