You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You identified the bug correctly. The replace(" ", ",") only replaces the first space. Changing it to replace(/\s/g, ","), or better replace(/\s+/g, ","), will split all whitespace-separated namespaces.
This is a one-line fix in src/common.js around line 169.
Suggestion: also add a unit test for multiple spaces (e.g., DEBUG="A B C" should enable all three). Could you open a PR? It is a safe, high-impact fix for many users.
Activity
jheeanny commentedon Feb 17, 2026
You identified the bug correctly. The
replace(" ", ",")only replaces the first space. Changing it toreplace(/\s/g, ","), or betterreplace(/\s+/g, ","), will split all whitespace-separated namespaces.This is a one-line fix in
src/common.jsaround line 169.Suggestion: also add a unit test for multiple spaces (e.g.,
DEBUG="A B C"should enable all three). Could you open a PR? It is a safe, high-impact fix for many users.abhu85 commentedon Feb 23, 2026
Good news - this bug has already been fixed!
Looking at the current
src/common.js(line 171), the code now uses:instead of the original
.replace(' ', ',')which only replaced the first space.This fix is included in v4.4.3 (the latest release on npm). Users experiencing this issue should upgrade:
I believe this issue can be closed.
abhu85 commentedon Mar 2, 2026
This issue appears to be fixed in the current codebase (v4.4.3).
Current code at
src/common.js:171:Verification:
All three namespaces are correctly parsed and enabled. The fix likely came in during the security updates in September 2025.
This issue can probably be closed.