8000 Replace whitespaces in namespaces string with commas globally instead… · debug-js/debug@a0497bd · GitHub
[go: up one dir, main page]

Skip to content

Commit a0497bd

Browse files
pdahal-cxPrabhat Dahal
and
Prabhat Dahal
authored
Replace whitespaces in namespaces string with commas globally instead of just the first space occurrence. (#997)
Co-authored-by: Prabhat Dahal <pdahal@west.com>
1 parent 7e3814c commit a0497bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function setup(env) {
168168

169169
const split = (typeof namespaces === 'string' ? namespaces : '')
170170
.trim()
171-
.replace(' ', ',')
171+
.replace(/\s+/g, ',')
172172
.split(',')
173173
.filter(Boolean);
174174

0 commit comments

Comments
 (0)
0