All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xitrum.validator.Url.scala Maven / Gradle / Ivy

There is a newer version: 3.28.18
Show newest version
package xitrum.validator

object Url extends Validator[String] {
  def check(value: String) = value.contains("://")

  def message(name: String, value: String) =
    if (value.contains("://"))
      None
    else
      Some("%s must be a URL".format(name))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy