angular-cn/packages/service-worker/worker
George Kalpakas 6c2c95851a fix(service-worker): let `*` match 0 characters in globs (#23339)
In [glob patterns][1], the `*` wildcard is supposed to match 0 or more
characters.

For reference:
- This is also how `*` works in other implementations, such as
  `.gitignore` files or Firebase hosting config.
- Some popular JS implementations (e.g. [minimatch][2], [micromatch][3])
  work differently, matching 1 or more character (but not 0).

This commit "fixes" the minimal glob support in
`@angular/service-worker` to allow `*` to also match 0 characters.

[1]: https://en.wikipedia.org/wiki/Glob_%28programming%29
[2]: https://www.npmjs.com/package/minimatch
[3]: https://www.npmjs.com/package/micromatch

PR Close #23339
2018-04-13 13:13:36 -07:00
..
src feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
test fix(service-worker): let `*` match 0 characters in globs (#23339) 2018-04-13 13:13:36 -07:00
testing feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
BUILD.bazel build(service-worker): properly build npm_package with Bazel (#23090) 2018-04-04 10:26:38 -07:00
main.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
rollup-worker.config.js feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
tsconfig.json refactor(bazel): convert most ts_library to ng_module (#22176) 2018-02-15 14:08:53 -08:00