mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
Fix module loading
This commit is contained in:
@@ -8,7 +8,7 @@ function moduleExists(loc) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const hasExtension = /\..*$/.test(loc);
|
||||
const hasExtension = /\.[^\/\\]*$/.test(loc);
|
||||
if (hasExtension) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user