Skip to content

Commit 7b06232

Browse files
style: format code with ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format
This commit fixes the style issues introduced in dad7125 according to the output from ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format. Details: #39
1 parent dad7125 commit 7b06232

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ function validateIP (ip) {
9595

9696
// Validate URL
9797
function validateURL (url) {
98-
const regex = /^(https?:\/\/)?[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?(\.[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?)+[/#?]?.*$/
98+
const regex =
99+
/^(https?:\/\/)?[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?(\.[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?)+[/#?]?.*$/
99100
return regex.test(url)
100101
}
101102

0 commit comments

Comments
 (0)