We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e4fe48 commit 48436d1Copy full SHA for 48436d1
src/main/scala/eu/sim642/adventofcode2024/Day19.scala
@@ -11,7 +11,7 @@ object Day19 {
11
12
def patternsRegex(patterns: Seq[Towel]): Regex = {
13
val one = patterns.mkString("|")
14
- ("^(" + one + ")*$").r // TODO: why s"..." doesn't work?
+ s"^($one)*$$".r
15
}
16
17
def countPossibleDesigns(input: Input): Int = {
0 commit comments