Skip to content

Commit e715959

Browse files
committed
fixed improper handling of valid urls
SQUASHED: AUTO-COMMIT-src-components-tools-lively-container.js,
1 parent 68986ba commit e715959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/tools/lively-container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export default class Container extends Morph {
234234
url = new URL(this.normalizeURL(path));
235235
// url.pathname = lively.paths.normalize(url.pathname);
236236
path = "" + url;
237-
} else if (path.match(/^[a-zA-Z]+:\/\//)) {
237+
} else if (path.match(/^[a-zA-Z]+:/)) {
238238
url = new URL(path)
239239
var other = true
240240
} else {
@@ -540,7 +540,7 @@ export default class Container extends Morph {
540540
if (!path) return;
541541
if (files.isURL(path)) {
542542
return new URL(path);
543-
} if (path.match(/^[a-zA-Z]+:\/\//)) {
543+
} if (path.match(/^[a-zA-Z]+:/)) {
544544
return new URL(path);
545545
} else {
546546
return new URL("https://lively4/" + path);

0 commit comments

Comments
 (0)