« get me outta code hell

add three more albums - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-11-14 23:41:10 -0400
committerFlorrie <towerofnix@gmail.com>2019-11-14 23:41:10 -0400
commitfcab76bfecb174e6fded906d6d2f2b74cf3ffb82 (patch)
tree4f022d156efd200e9a89a30e33fef5d929c1ff33 /upd8.js
parent7623fd1ac8f9df65658e5886f595f656e09eda08 (diff)
add three more albums
just another trio - the recent ones - to go, and then all the albums
are here!
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index ac346ef..43069f3 100644
--- a/upd8.js
+++ b/upd8.js
@@ -668,7 +668,7 @@ function getArtistDirectory(artistName) {
 }
 
 function getKebabCase(name) {
-    return name.split(' ').join('-').replace(/[^a-zA-Z0-9\-]/g, '').replace(/-{2,}/g, '-').replace(/^-+|-+$/g, '').toLowerCase();
+    return name.split(' ').join('-').replace(/&/g, 'and').replace(/[^a-zA-Z0-9\-]/g, '').replace(/-{2,}/g, '-').replace(/^-+|-+$/g, '').toLowerCase();
 }
 
 function generateSidebarForAlbum(album, currentTrack = null) {