Changeset 808
- Timestamp:
- Feb 16, 2011, 3:34:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/CustomTagLib.groovy
r798 r808 288 288 289 289 def schemes = ["http","https", "ftp"] as String[] 290 def domainValidator = new RegexValidator("localhost(:(\\d{1,5}))?") 290 //def domainValidator = new RegexValidator("localhost(:(\\d{1,5}))?") 291 def domainValidator = new RegexValidator(".*(:(\\d{1,5}))?") // Any domain, incl user@host:port 291 292 def validator = new UrlValidator(schemes, domainValidator, UrlValidator.ALLOW_2_SLASHES) 292 293 return validator.isValid(url)
Note: See TracChangeset
for help on using the changeset viewer.