Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add UNICODE_CHARACTER_CLASS flag to Regex flag parsing #2895
Java's Regex have issue with character classes when it comes to unicode content (
Apparently they solved things in Java7 by adding a special flag: UNICODE_CHARACTER_CLASS ( http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#UNICODE_CHARACTER_CLASS )
Sadly org.elasticsearch.common.regex doesn't "understand" it. As Java7 is the recommended runtime for ES I think it's OK to add it even if not supported by earlier JDK.