Skip to content

Commit 9db5646

Browse files
Strings: Fix pattern for \u{...} escape sequences. The final '}' in the pattern should also be escaped.
1 parent a723ab4 commit 9db5646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/sosy_lab/java_smt/basicimpl/AbstractStringFormulaManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public abstract class AbstractStringFormulaManager<TFormulaInfo, TType, TEnv, TF
3838
+ "((?<codePoint>[0-9a-fA-F]{4})"
3939
+ "|"
4040
// or curly brackets like "\\u{61}"
41-
+ "(\\{(?<codePointInBrackets>[0-9a-fA-F]{1,5})}))");
41+
+ "(\\{(?<codePointInBrackets>[0-9a-fA-F]{1,5})\\}))");
4242

4343
protected AbstractStringFormulaManager(
4444
FormulaCreator<TFormulaInfo, TType, TEnv, TFuncDecl> pCreator) {

0 commit comments

Comments
 (0)