题解 | #合法的URL#
合法的URL
https://www.nowcoder.com/practice/81982d7a36aa436fa9143c8b4f5ea1a3
const _isUrl = (url) => { const httpRegex = /^(https?):\/\/[^\s$.?#].[^\s]*$/i; return httpRegex.test(url); };#在找工作求抱抱#
合法的URL
https://www.nowcoder.com/practice/81982d7a36aa436fa9143c8b4f5ea1a3
const _isUrl = (url) => { const httpRegex = /^(https?):\/\/[^\s$.?#].[^\s]*$/i; return httpRegex.test(url); };#在找工作求抱抱#
相关推荐