Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit ed2959a

Browse files
committed
fix reg of absolute path
1 parent 66a6a10 commit ed2959a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/server/static/scripts/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
var paths = path.split(slash);
4242
if(/^https?:?/i.test(paths[0])) {
4343
return path;
44-
} else if(/^|[a-zA-Z]:\\.*$/.test(paths[0])) {
44+
} else if(/^$|^[a-zA-Z]:\\.*$/.test(paths[0])) {
4545
return '/image?' + Base64.encode(path);
4646
} else {
4747
for(var i = 0, len = paths.length; i < len; i++) {

0 commit comments

Comments
 (0)