Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit e87d5f0

Browse files
committed
fix(): regex now correctly removes all spaces
1 parent 8355ebd commit e87d5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function sanitizeName (name) {
4444
var sanitizedName = name;
4545

4646
// Remove all invalid characters
47-
sanitizedName = sanitizedName.replace(/[^A-Za-z0-9" "\.]/g, '');
47+
sanitizedName = sanitizedName.replace(/\s+/g, '');
4848

4949
var currentLength;
5050
do {

0 commit comments

Comments
 (0)