bug fixed: /a/b.js may be matched with rule /a/b by mistake