Switch to raw string.
All checks were successful
Solve / example-action (push) Successful in 46s

This commit is contained in:
Logiar 2024-12-06 04:33:43 +00:00
parent c1179a2f11
commit 0f75670efb

View File

@ -9,7 +9,7 @@ var doState = true
while (scanner.hasNextLine()) { while (scanner.hasNextLine()) {
val line = scanner.nextLine() 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) val match = regex.findAll(line)
for (matchResult in match) { for (matchResult in match) {
if (matchResult.value == "don't()") { if (matchResult.value == "don't()") {