We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f113a commit 08684fbCopy full SHA for 08684fb
lib/resource-mapper.js
@@ -25,7 +25,7 @@ class ResourceMapper {
25
this._defaultContentType = defaultContentType
26
this._indexFilename = indexFilename
27
this._types = { ...types, ...overrideTypes }
28
- this._isControlFile = new RegExp(`.(?:${fileSuffixes.join('|')})$`)
+ this._isControlFile = new RegExp(`(?:${fileSuffixes.map(fs => fs.replace('.', '\\.')).join('|')})$`)
29
30
// If the host needs to be replaced on every call, pre-split the root URL
31
if (includeHost) {
0 commit comments