improve (plugins): add credits in url.plugin

pull/2144/head
Gurkirat Singh 2022-05-07 00:18:05 +05:30
parent 324eba4b83
commit 0805de548f
No known key found for this signature in database
GPG Key ID: B7D8EAF198AD7E58
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ function slugify() {
fi fi
# Pass 1 - Clean the url # Pass 1 - Clean the url
# Credits: https://stackoverflow.com/a/20007549/10362396
SLUG=$(echo -n "$TXT" | tr -cd ' [:alnum:]._-' | tr -s ' ') SLUG=$(echo -n "$TXT" | tr -cd ' [:alnum:]._-' | tr -s ' ')
# Pass 2 - Transformation # Pass 2 - Transformation