From c31c926aac676d104c58e0ee86d020dcac9ffa34 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Fri, 27 Jan 2017 11:24:47 -0200 Subject: [PATCH] Pass a Windows-aware Regex to `async-to-gen/register` --- bin/now.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/now.js b/bin/now.js index d621e1d..ba86f30 100755 --- a/bin/now.js +++ b/bin/now.js @@ -11,9 +11,10 @@ const updateNotifier = require('update-notifier') const {error} = require('../lib/error') const pkg = require('../package') +const pathSep = process.platform === 'win32' ? '\\\\' : '/' // Support for keywords "async" and "await" require('async-to-gen/register')({ - includes: /.*now(-cli)?\/(lib|bin).*/, + includes: new RegExp(`.*now(-cli)?${pathSep}(lib|bin).*`), excludes: null })