Skip to content

test: cover space-separated DEBUG namespaces - #1060

Open
amandeavor wants to merge 1 commit into
debug-js:masterfrom
amandeavor:test/989-space-separated-namespaces
Open

amandeavor wants to merge 1 commit into
debug-js:masterfrom
amandeavor:test/989-space-separated-namespaces

Conversation

@amandeavor

Copy link
Copy Markdown

Summary

enable() already normalizes whitespace via replace(/\\s+/g, ','). Add a regression test so space-separated namespaces (APP_X APP_Y APP_Z) all enable.

Fixes #989

Validation

npm run test:node

17 passing.

enable() already splits on /\s+/g; add a regression test so
`DEBUG=\"A B C\"` / enable('A B C') keeps enabling all namespaces.

Fixes debug-js#989
Copilot AI lite review requested due to automatic review settings September 25, 2026 08:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

env variable DEBUG is not parsed correctly

2 participants