File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/scala/org/scalasteward/core/edit
test/scala/org/scalasteward/core/edit Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ object UpdateHeuristic {
215215 defaultReplaceVersion(_ => List (" version" ))(update)
216216 case update : Update .Single if MillAlg .isMillMainUpdate(update) =>
217217 // this is intended to update the `.mill-version`
218- content => if (content === update.currentVersion) Some (update.nextVersion) else None
218+ content => if (content.trim() === update.currentVersion) Some (update.nextVersion) else None
219219 case _ =>
220220 _ => None
221221 }
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ class EditAlgTest extends FunSuite {
258258 newerVersions = Nel .of(" 0.9.9" )
259259 )
260260 val original = Map (
261- " .mill-version" -> """ 0.9.5"" " ,
261+ " .mill-version" -> " 0.9.5 \n " ,
262262 " .travis.yml" -> """ - TEST_MILL_VERSION=0.9.5"""
263263 )
264264 val expected = Map (
You can’t perform that action at this time.
0 commit comments