WAI
Status Update
Comments
en...@google.com <en...@google.com>
en...@google.com <en...@google.com>
na...@google.com <na...@google.com>
ps...@google.com <ps...@google.com>
to...@google.com <to...@google.com>
sa...@google.com <sa...@google.com> #2
Which device? All devices supported in AOSP run either 4.1 or 4.3 at this point.
bd...@google.com <bd...@google.com> #3
Device Samsung Galaxy with android 4.0.4
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #4
This report applies to an Android-based device, and the issue tracker where you reported it specializes in issues within the Open Source source code of the Android platform.
We are not able to provide support for individual devices. Please report this issue in the support forum for your device, which might be hosted by your device manufacturer or by the operator where you got your device.
We are not able to provide support for individual devices. Please report this issue in the support forum for your device, which might be hosted by your device manufacturer or by the operator where you got your device.
ma...@marcardar.com <ma...@marcardar.com> #5
Out of interest, why does this work?
val regex = """\{foo}""".toRegex()
println(regex.matches("{foo}")) // true
go...@jakewharton.com <go...@jakewharton.com> #6
Because it's running on the JVM
ma...@marcardar.com <ma...@marcardar.com> #7
Also, why does AS (2021.1.1 patch 2) give a warning if we escape the closing brace?
go...@jakewharton.com <go...@jakewharton.com> #8
Because it's based on IntelliJ IDEA which sees you're using a Java API and is applying rules written against the JVM behavior
ma...@marcardar.com <ma...@marcardar.com> #9
Ok thanks. There's surely a bug there somewhere!
go...@jakewharton.com <go...@jakewharton.com> #10
Definitely. Want to file a new issue on Android Studio about it?
Description
\\{([a-z][a-z0-9_-]*)}
Note that the closing curly brace is not escaped.
The following exception is thrown:
Caused by: java.util.regex.PatternSyntaxException: Syntax error U_REGEX_RULE_SYNTAX near index 21:
\{([a-z][a-z0-9_-]*)}
^
at com.ibm.icu4jni.regex.NativeRegEx.open(Native Method)
at java.util.regex.Pattern.compileImpl(Pattern.java:383)
at java.util.regex.Pattern.<init>(Pattern.java:341)
at java.util.regex.Pattern.compile(Pattern.java:358)