@live-change/framework
Advanced tools
Comparing version 0.8.93 to 0.8.94
@@ -172,6 +172,8 @@ import { mergeDeep } from "../utils.js" | ||
if(!value) return false // ignore empty | ||
const match = value.match( | ||
/^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._%~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/ | ||
) | ||
if(!match) return 'wrongUrl' | ||
try { | ||
const url = new URL(value) | ||
if(url.protocol !== 'http:' && url.protocol !== 'https:') return 'wrongUrl' | ||
} catch(e) { | ||
return 'wrongUrl' | ||
} | ||
} | ||
@@ -178,0 +180,0 @@ } |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.8.93", | ||
"version": "0.8.94", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@live-change/dao": "^0.8.93", | ||
"@live-change/uid": "^0.8.93" | ||
"@live-change/dao": "^0.8.94", | ||
"@live-change/uid": "^0.8.94" | ||
}, | ||
"gitHead": "c5c699c6f29b735dd1597ddf572a8b956b338329" | ||
"gitHead": "1c40a298d8d39dfcf4fc17bb754df365e7214d3e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186865
5087