emibcn / service-worker-updater

Bad usage of RegExp#exec and String#match JS-D007
Performance
Major
6 months ago3 years old
Prefer RegExp#test() over String#match()
43
44    // If this looks like a URL for a resource, because it contains
45    // a file extension, skip.
46    if (url.pathname.match(fileExtensionRegexp)) {47      return false
48    }
49