Skip to content

Commit

Permalink
Fixed compatibility with 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ColOfAbRiX committed Nov 8, 2022
1 parent 18ece18 commit 64684ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -69,7 +69,7 @@ class UnsafeFiglet4sSpecs extends AnyFlatSpec with Matchers with Figlet4sMatcher
.keySet
.map(subdir => s"$subdir$pathSeparator")
.toSeq
.appended("")
.:+("")

val actual =
Figlet4s
Expand All @@ -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
}

Expand Down

0 comments on commit 64684ef

Please sign in to comment.