diff --git a/scalafix-core/src/main/scala/scalafix/config/Regex.scala b/scalafix-core/src/main/scala/scalafix/config/Regex.scala index 6441ed81d..f0787b1ba 100644 --- a/scalafix-core/src/main/scala/scalafix/config/Regex.scala +++ b/scalafix-core/src/main/scala/scalafix/config/Regex.scala @@ -6,17 +6,18 @@ import java.util.regex.Pattern import scalafix.internal.config.ScalafixMetaconfigReaders._ class Regex( - val pattern: Pattern, - val captureGroup: Option[Int] + val pattern: Pattern, + val captureGroup: Option[Int] ) object Regex { implicit val regexDecoder: ConfDecoder[Regex] = ConfDecoder.instance[Regex] { case obj: Conf.Obj => - (obj.get[Pattern]("pattern") |@| obj.getOption[Int]("captureGroup")).map { - case (pattern, groupIndex) => new Regex(pattern, groupIndex) - } + (obj.get[Pattern]("pattern") |@| obj.getOption[Int]("captureGroup")) + .map { + case (pattern, groupIndex) => new Regex(pattern, groupIndex) + } } implicit val customMessageRegexDecoder: ConfDecoder[CustomMessage[Regex]] =