angular-cn/packages/service-worker/worker/test
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
..
BUILD.bazel feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
async.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
data_spec.ts feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
happy_spec.ts fix(service-worker): let `*` match 0 characters in globs (#23339) 2018-04-13 13:13:36 -07:00
idle_spec.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00
prefetch_spec.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00