There is a simple way to validate if an URL is valid in Javascript, no messy Regex needed. const url = new URL(url [, base]).
確定! 回上一頁