somehow Scala didn't warn about this; fix regex matching