Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive RegExp in split #80

Closed
Tinple opened this issue Feb 24, 2014 · 1 comment
Closed

Excessive RegExp in split #80

Tinple opened this issue Feb 24, 2014 · 1 comment

Comments

@Tinple
Copy link

Tinple commented Feb 24, 2014

(process.env.DEBUG || '')
  .split(/[\s,]+/)

Usually use like DEBUG=worker,http node app.js, so I really can not understand the '\s' there.

@tj
Copy link
Contributor

tj commented Feb 25, 2014

it's not hurting anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants