Closed jclem closed 6 years ago
Scala.js uses JS regex engine, so it's not the same as on JVM.
Oh whoops, I didn't realize that ScalaFiddle uses Scala.js.
There aren't many things that work differently from JVM, but regexes are one of them (for performance reasons) :)
In ScalaFiddle, this is
None
(see https://scalafiddle.io/sf/amxlC9O/0):In Scastie, it's
Some(hello)
: https://scastie.scala-lang.org/ZUmFJMFgSNaGA2nrRXrUkA