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

Commit 876d5bb

Browse files
author
Lucas Rojas
committed
Add the blank space to the regex sanitization
1 parent e148f6f commit 876d5bb

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(/[^A-Za-z0-9" "\.]/g, '');
4848

4949
var currentLength;
5050
do {

0 commit comments

Comments
 (0)