Skip to content

Commit

Permalink
better comment for the regex
Browse files Browse the repository at this point in the history
  • Loading branch information
stukalin authored and eshtadc committed Jan 3, 2019
1 parent dd4f8e6 commit 5ffad24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service-worker-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = class ServiceWorkerBuilder {
let rollupReplaceConfig = {
include: [
'/**/ember-service-worker/**/*.js',
// same as above but for windows paths like D:\my-ember\ember-service-worker\whatever\sw.js;
// same as above but for windows paths like D:\my-ember\ember-service-worker\whatever\sw.js; which are updated before this step to D:/my-ember/ember-service/worker/whatever/sw.js
// the original one doesn't work when the source code and the %TMP% folder, which ember started to use after v3.5, are located on different logical drives
// which is quite common in Windows.
/^[a-z]:\/(?:[^\/:*?"<>|\r\n]+\/)*ember-service-worker\/(?:[^\/:*?"<>|\r\n]+\/)*[^\/:*?"<>|\r\n]*\.js$/i
Expand Down

0 comments on commit 5ffad24

Please sign in to comment.