Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
sarah.grebing
ProofScriptParser
Commits
f51974f3
Commit
f51974f3
authored
Feb 02, 2018
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix for label matcher
parent
cbd58a54
Pipeline
#17790
failed with stages
in 96 minutes and 14 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/KeYMatcher.java
...java/edu/kit/iti/formal/psdbg/interpreter/KeYMatcher.java
+4
-1
No files found.
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/KeYMatcher.java
View file @
f51974f3
...
@@ -112,11 +112,14 @@ public class KeYMatcher implements MatcherApi<KeyData> {
...
@@ -112,11 +112,14 @@ public class KeYMatcher implements MatcherApi<KeyData> {
resultsFromLabelMatch
=
new
ArrayList
<>();
resultsFromLabelMatch
=
new
ArrayList
<>();
//compile pattern
//compile pattern
String
cleanLabel
=
label
.
replaceAll
(
" "
,
""
);
String
cleanLabel
=
label
.
replaceAll
(
" "
,
""
);
Pattern
regexpForLabel
=
Pattern
.
compile
(
cleanLabel
);
String
cleanLabel2
=
cleanLabel
.
replaceAll
(
"\\("
,
"\\\\("
);
cleanLabel
=
cleanLabel2
.
replaceAll
(
"\\)"
,
"\\\\)"
);
String
branchLabel
=
currentState
.
getData
().
getBranchingLabel
();
String
branchLabel
=
currentState
.
getData
().
getBranchingLabel
();
String
cleanBranchLabel
=
branchLabel
.
replaceAll
(
" "
,
""
);
String
cleanBranchLabel
=
branchLabel
.
replaceAll
(
" "
,
""
);
Pattern
regexpForLabel
=
Pattern
.
compile
(
cleanLabel
);
Matcher
branchLabelMatcher
=
regexpForLabel
.
matcher
(
cleanBranchLabel
);
Matcher
branchLabelMatcher
=
regexpForLabel
.
matcher
(
cleanBranchLabel
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment