Skip to content

Commit d295606

Browse files
committed
Safe name generator
1 parent 62918d6 commit d295606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function stringToTrimmedArray(str) {
3131
* @returns A-Za-z
3232
*/
3333
function safe(str) {
34-
s = str.replace(/[^A-Za-z]/g, "");
34+
s = str.replace(/[^A-Za-z0-9]/g, "");
3535
return s;
3636
}
3737

0 commit comments

Comments
 (0)