mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Normalize a few more extensions
This commit is contained in:
@@ -392,7 +392,7 @@ module NameResolution {
|
||||
private string normalizeModuleName(string name) {
|
||||
result =
|
||||
name.regexpReplaceAll("^node:", "")
|
||||
.regexpReplaceAll("\\.[jt]sx?$", "")
|
||||
.regexpReplaceAll("\\.[cm]?[jt]sx?$", "")
|
||||
.regexpReplaceAll("/(index)?$", "")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user