improve sonarqube action

This commit is contained in:
2021-04-16 03:14:59 +02:00
parent 620cd73fec
commit cccabb2cc9
3 changed files with 12 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import java.net.URL
fun ValidationBuilder<String>.isUrl() =
addConstraint("is not url") {
try {
val url = URL(it)
URL(it)
true
} catch (e: MalformedURLException) {
false