File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
modules/core/src/main/scala/org/scalasteward/core/edit/scalafix Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1717package org .scalasteward .core .edit .scalafix
1818
1919import cats .syntax .all ._
20+ import java .util .regex .Pattern
2021import org .scalasteward .core .data .Update
2122import org .scalasteward .core .edit .scalafix .ScalafixMigration .ExecutionOrder
2223
@@ -26,7 +27,8 @@ final class ScalafixMigrationsFinder(migrations: List[ScalafixMigration]) {
2627 .filter { migration =>
2728 update.groupId === migration.groupId &&
2829 migration.artifactIds.exists { re =>
29- update.artifactIds.exists(artifactId => re.r.findFirstIn(artifactId.name).isDefined)
30+ val pattern = Pattern .compile(re)
31+ update.artifactIds.exists(artifactId => pattern.matcher(artifactId.name).matches())
3032 } &&
3133 update.currentVersion < migration.newVersion &&
3234 update.nextVersion >= migration.newVersion
You can’t perform that action at this time.
0 commit comments