This commit is contained in:
parent
c1179a2f11
commit
0f75670efb
@ -9,7 +9,7 @@ var doState = true
|
||||
|
||||
while (scanner.hasNextLine()) {
|
||||
val line = scanner.nextLine()
|
||||
val regex = Regex("(mul\\((\\d+),(\\d+)\\))|(do\\(\\))|(don't\\(\\))")
|
||||
val regex = Regex("""(mul\((\d+),(\d+)\))|(do\(\))|(don't\(\))""")
|
||||
val match = regex.findAll(line)
|
||||
for (matchResult in match) {
|
||||
if (matchResult.value == "don't()") {
|
||||
|
Loading…
Reference in New Issue
Block a user