Skip to content

Commit

Permalink
regex update
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdemarGr committed Aug 9, 2023
1 parent 5f507a2 commit 22c1c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/main/scala/spice4s/client/models/Type.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import cats.implicits._
sealed abstract case class Type private (value: String)

object Type {
val validationRegex = "^([a-z][a-z0-9_]{1,61}[a-z0-9]/)?[a-z][a-z0-9_]{1,62}[a-z0-9]$".r
val validationRegex = "^([a-z][a-z0-9_]{1,61}[a-z0-9]/)*[a-z][a-z0-9_]{1,62}[a-z0-9]$".r

def unsafeFromString(value: String): Type = new Type(value) {}

Expand Down

0 comments on commit 22c1c6d

Please sign in to comment.