Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ sealed trait Update extends Product with Serializable {
.map { term =>
Regex
.quoteReplacement(Update.removeCommonSuffix(term))
.replace(".", ".?")
.replace("-", ".?")
}
.filter(_.nonEmpty)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class UpdateTest extends FunSuite with Matchers {
).replaceAllIn(original) shouldBe None
}

test("replaceAllIn:") {
test("replaceAllIn: ignore previous") {
val original =
"""val circeVersion = "0.10.0"
|val previousCirceIterateeVersion = "0.10.0"
Expand All @@ -138,6 +138,13 @@ class UpdateTest extends FunSuite with Matchers {
).replaceAllIn(original) shouldBe Some(expected)
}

test("replaceAllIn: artifactId with dot") {
val original = """ def plotlyJs = "1.41.3" """
val expected = """ def plotlyJs = "1.43.2" """
Single("org.webjars.bower", "plotly.js", "1.41.3", Nel.of("1.43.2"))
.replaceAllIn(original) shouldBe Some(expected)
}

test("replaceAllInRelaxed") {
val original = """lazy val circeVersion = "0.9.3""""
val expected = """lazy val circeVersion = "0.11.1""""
Expand Down