improve sonarqube action

This commit is contained in:
flecomte committed 2021-04-16 03:17:38 +02:00
1 parent 620cd73fec
commit cccabb2cc9
3 files changed
+12 -4

No files matched your search

@@ -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