Skip to content

Release 3.1.5 doesn't work in Android #580

@merlin-zaraza

Description

@merlin-zaraza

Seems like there are some regex patterns were added to release 3.1.5 which doesn't work in Android. Previous version (3.1.4) works well.
Here is stack trace:

Caused by java.util.regex.PatternSyntaxException: U_ILLEGAL_ARGUMENT_ERROR
^[\p{IsLetter}_][\p{IsLetter}\p{IsDigit}_]*
       at java.util.regex.Pattern.compileImpl(Pattern.java)
       at java.util.regex.Pattern.compile(Pattern.java:1344)
       at java.util.regex.Pattern.<init>(Pattern.java:1328)
       at java.util.regex.Pattern.compile(Pattern.java:950)
       at com.mitchellbosecke.pebble.lexer.LexerImpl.<clinit>(LexerImpl.java:2)
       at com.mitchellbosecke.pebble.PebbleEngine.getPebbleTemplate(PebbleEngine.java:11)
       at com.mitchellbosecke.pebble.PebbleEngine.lambda$getTemplate$2(PebbleEngine.java)
       at com.mitchellbosecke.pebble.PebbleEngine.lambda$getTemplate$2$PebbleEngine(PebbleEngine.java)
       at com.mitchellbosecke.pebble.-$$Lambda$PebbleEngine$RWC2jsSmCWn6HfuOZr1k4eoPeUE.apply(-.java:8)
       at j$.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:47)
       at j$.util.concurrent.ConcurrentMap$-EL.computeIfAbsent(ConcurrentMap.java:6)
       at com.mitchellbosecke.pebble.cache.template.ConcurrentMapTemplateCache.computeIfAbsent(ConcurrentMapTemplateCache.java:2)
       at com.mitchellbosecke.pebble.cache.template.ConcurrentMapTemplateCache.computeIfAbsent(ConcurrentMapTemplateCache.java)
       at com.mitchellbosecke.pebble.PebbleEngine.getTemplate(PebbleEngine.java:17)
       at com.mitchellbosecke.pebble.PebbleEngine.getTemplate(PebbleEngine.java:2)

According to this post https://stackoverflow.com/questions/47922686/patternsyntaxexception-when-trying-to-validate-latin-characters Android doesn't recognize Is aliases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions