File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ const require = createRequire(import.meta.url);
44
55const { slugify } = require ( "transliteration" ) ;
66
7- const standardSlug = "a-zA-Z0-9-" ;
7+ const standardSlug = "a-zA-Z0-9-_.~' " ;
88
99/**
1010 * @name getSlug
1111 * @summary Return a slugified string using "slugify" from transliteration
1212 * @see https://www.npmjs.com/package/transliteration
1313 * @memberof Utils
1414 * @param {String } slugString - string to slugify
15- * @param {String|Boolean } allowedChars - specify extra characters that are not removed by slugify
15+ * @param {String } [ allowedChars=a-zA-Z0-9-_.~'] - specify extra characters that are not removed by slugify
1616 * @returns {String } slugified string
1717 */
1818export default function getSlug ( slugString , allowedChars = standardSlug ) {
You can’t perform that action at this time.
0 commit comments