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 18f9133 commit 72cc439Copy full SHA for 72cc439
javascript/ql/lib/semmle/javascript/internal/NameResolution.qll
@@ -392,7 +392,7 @@ module NameResolution {
392
private string normalizeModuleName(string name) {
393
result =
394
name.regexpReplaceAll("^node:", "")
395
- .regexpReplaceAll("\\.[jt]sx?$", "")
+ .regexpReplaceAll("\\.[cm]?[jt]sx?$", "")
396
.regexpReplaceAll("/(index)?$", "")
397
}
398
0 commit comments