Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] escape the Windows directory separator in the logger module
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Jan 25, 2017
1 parent 544f08b commit 3da0682
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/logger.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="page-title">logger.js</h1>
/* eslint-disable no-console */

const pattern = /at (?:(.*) )?\(?([^(]*):(\d+):(\d+)\)?$/,
separatorPattern = new RegExp(sep);
separatorPattern = new RegExp(sep.replace('\\', '\\\\'));

/**
* Dead-simple, composable, isomorphic, cross-browser wrapper for `console.log`.
Expand Down
2 changes: 1 addition & 1 deletion lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
/* eslint-disable no-console */

const pattern = /at (?:(.*) )?\(?([^(]*):(\d+):(\d+)\)?$/,
separatorPattern = new RegExp(_path.sep);
separatorPattern = new RegExp(_path.sep.replace('\\', '\\\\'));

/**
* Dead-simple, composable, isomorphic, cross-browser wrapper for `console.log`.
Expand Down
2 changes: 1 addition & 1 deletion src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import transform from 'lodash/transform';
/* eslint-disable no-console */

const pattern = /at (?:(.*) )?\(?([^(]*):(\d+):(\d+)\)?$/,
separatorPattern = new RegExp(sep);
separatorPattern = new RegExp(sep.replace('\\', '\\\\'));

/**
* Dead-simple, composable, isomorphic, cross-browser wrapper for `console.log`.
Expand Down

0 comments on commit 3da0682

Please sign in to comment.