We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ac2014 commit 157c562Copy full SHA for 157c562
src/Automaton.java
@@ -44,7 +44,7 @@ public Automaton(File file) throws IOException {
44
this.states.add(this.start);
45
46
try (BufferedReader automatonBR = new BufferedReader(new FileReader(file))) {
47
- Pattern transitionPattern = Pattern.compile("\\s+(\\d+) -> (\\d+) \\[label = \\\"([a-zA-Z0-9-_])\\\"\\];");
+ Pattern transitionPattern = Pattern.compile("\\s+(\\d+) -> (\\d+) \\[label = \\\"([a-zA-Z0-9-_]+)\\\"\\];");
48
Pattern acceptingPattern = Pattern.compile("\\s+(\\d+) \\[peripheries=2\\]");
49
50
String line;
0 commit comments