Partial file names. Files names with same prefix where mistakenly matched. For example: Both "scripts/main.js" and "scripts/mobile-main.js" where a match to "main.js" file. I added regex fix in order to match only exact file
names (regex added is "([\'\"\/])" for matching names staring with ', " or /. This fixed the issue.
I added unitests (which fails without this fix).
Partial file names. Files names with same prefix where mistakenly matched. For example: Both "scripts/main.js" and "scripts/mobile-main.js" where a match to "main.js" file. I added regex fix in order to match only exact file names (regex added is "([\'\"\/])" for matching names staring with ', " or /. This fixed the issue. I added unitests (which fails without this fix).