From 372978e0cd605af35dc5a14c55f97145d21dddbd Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Thu, 21 Dec 2023 18:17:52 +0100 Subject: [PATCH] Format --- zio-parser/shared/src/main/scala/zio/parser/Regex.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/zio-parser/shared/src/main/scala/zio/parser/Regex.scala b/zio-parser/shared/src/main/scala/zio/parser/Regex.scala index c0339c4..00bb982 100644 --- a/zio-parser/shared/src/main/scala/zio/parser/Regex.scala +++ b/zio-parser/shared/src/main/scala/zio/parser/Regex.scala @@ -441,14 +441,13 @@ object Regex { } sealed trait Tabular extends Compiled { self => - @nowarn def ~(that: Tabular): Tabular = { + @nowarn def ~(that: Tabular): Tabular = (self, that) match { - case (Empty, lookup: LookupFunction) => lookup - case (lookup: LookupFunction, Empty) => lookup + case (Empty, lookup: LookupFunction) => lookup + case (lookup: LookupFunction, Empty) => lookup case (left: LookupFunction, right: LookupFunction) => (left ~ right): LookupFunction - case _ => Empty + case _ => Empty } - } @nowarn def |(that: Tabular): Tabular = (self, that) match {