Skip to content

Commit

Permalink
Handle URLs without scheme (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden authored Aug 22, 2021
1 parent 6edaa0e commit d51be93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generate/collectModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ module.exports = async (page) => {
Object.keys(window.require.s.contexts._.defined).forEach(
(moduleName) => {
/**
* Ignore all modules that are loaded with plugins other then text.
* Ignore all modules that are loaded with plugins other than text.
*/
if (
(moduleName.includes('!') &&
!moduleName.startsWith('text!')) ||
moduleName.match(/^https?:\/\//)
moduleName.match(/^(https?:)?\/\//)
) {
return;
}
Expand Down

0 comments on commit d51be93

Please sign in to comment.