1
0
Fork 0
mirror of https://github.com/marty-oehme/scripts.git synced 2024-12-22 16:08:09 +00:00

Fixed space replacement

This commit is contained in:
Maboroshy 2018-02-06 19:46:08 +03:00 committed by GitHub
parent 90bf93a7ad
commit 9c33722048
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ Script {
// convert tag names with spaces to in-text tags with "_", "tag one" to @tag_one // convert tag names with spaces to in-text tags with "_", "tag one" to @tag_one
for (var i = 0; i < tags.length; i++) { for (var i = 0; i < tags.length; i++) {
tags[i] = tags[i].replace(" ", "_"); tags[i] = tags[i].replace(/ /g, "_");
} }
return tags; return tags;