studiokit-scaffolding-js 7.0.13-alpha.1 → 7.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/url.js +1 -1
- package/package.json +1 -1
package/lib/utils/url.js
CHANGED
|
@@ -79,7 +79,7 @@ function hasHttpProtocol(url) {
|
|
|
79
79
|
exports.hasHttpProtocol = hasHttpProtocol;
|
|
80
80
|
function isUrlValid(url) {
|
|
81
81
|
// modified from https://stackoverflow.com/a/3809435
|
|
82
|
-
return /^(https?:\/\/)?[-a-zA-Z0-9@:%._
|
|
82
|
+
return /^(https?:\/\/)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_.~#?&/[\]!$&'*+,;=]*)$/.test(url);
|
|
83
83
|
}
|
|
84
84
|
exports.isUrlValid = isUrlValid;
|
|
85
85
|
/** The total number of tries for `fetchText`, including the initial request. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.0.13
|
|
3
|
+
"version": "7.0.13",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|