From 64684ef83cded16472400b6e435d166d498b6ceb Mon Sep 17 00:00:00 2001 From: Fabrizio Colonna Date: Tue, 8 Nov 2022 11:52:40 +0000 Subject: [PATCH] Fixed compatibility with 2.12 --- .../scala/figlet4s/unsafe/UnsafeFiglet4sSpecs.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/figlet4s-core/src/test/scala/com/colofabrix/scala/figlet4s/unsafe/UnsafeFiglet4sSpecs.scala b/figlet4s-core/src/test/scala/com/colofabrix/scala/figlet4s/unsafe/UnsafeFiglet4sSpecs.scala index 78fa385..92e7fb7 100644 --- a/figlet4s-core/src/test/scala/com/colofabrix/scala/figlet4s/unsafe/UnsafeFiglet4sSpecs.scala +++ b/figlet4s-core/src/test/scala/com/colofabrix/scala/figlet4s/unsafe/UnsafeFiglet4sSpecs.scala @@ -58,7 +58,7 @@ class UnsafeFiglet4sSpecs extends AnyFlatSpec with Matchers with Figlet4sMatcher val actual = Figlet4s .internalFonts - .filterNot(startPathRegex.matches(_)) + .filterNot(startPathRegex.findFirstIn(_).isDefined) actual shouldBe empty } @@ -69,7 +69,7 @@ class UnsafeFiglet4sSpecs extends AnyFlatSpec with Matchers with Figlet4sMatcher .keySet .map(subdir => s"$subdir$pathSeparator") .toSeq - .appended("") + .:+("") val actual = Figlet4s @@ -95,7 +95,7 @@ class UnsafeFiglet4sSpecs extends AnyFlatSpec with Matchers with Figlet4sMatcher val subdirPathRegex = s"^$subdir\\$pathSeparator.*".r Figlet4s .internalFonts - .filter(subdirPathRegex.matches(_)) + .filter(subdirPathRegex.findFirstIn(_).isDefined) .length }