Skip to content

Commit

Permalink
Merge pull request #10398 from som-snytt/tweak/lambdaless
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed May 17, 2023
2 parents c7019c1 + 15a0dda commit 83745c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partest/scala/tools/partest/ReplTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ trait Lambdaless extends ReplTest {
override def normalize(s: String) = stripLambdaClassName(super.normalize(s))
}
object Lambdaless {
private val lambdaless = """\$Lambda\$\d+/(?:0x[a-f0-9]{16}|\d+)(@[a-fA-F0-9]+)?""".r
private val lambdaless = """\$Lambda(?:\$\d+)?/(?:0x[a-f0-9]{16}|\d+)(?:@[a-fA-F0-9]+)?""".r
private def stripLambdaClassName(s: String): String = lambdaless.replaceAllIn(s, Regex.quoteReplacement("<function>"))
}

Expand Down

0 comments on commit 83745c6

Please sign in to comment.