Add missing closing parenthesis

This commit is contained in:
Amarantha Kulkarni
2024-02-07 16:59:36 -08:00
parent 8437cd0980
commit f39fa9f3fa

View File

@@ -62,7 +62,7 @@ function tl(key) {
*/
function idify(s) {
// s = s.replace(/[^\p{Alphabetic}\p{Mark}\p{Decimal_Number}\p{Connector_Punctuation}\p{Join_Control}]/gu, '').trim().toLowerCase()
s = s.replace(/([^\w]|[\s-]/gu, '').trim().toLowerCase()
s = s.replace(/([^\w]|[\s-])/gu, '').trim().toLowerCase()
s = s.replace(/[\s-]+/gu, '-')
if (!s) {
s = "_";