Skip to content

Commit 71d29a4

Browse files
Brent Hooverbrent-hoover
authored andcommitted
fix: changes from c/r
Signed-off-by: Brent Hoover <[email protected]>
1 parent 9dc1fdb commit 71d29a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/api-utils/lib/getSlug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ const require = createRequire(import.meta.url);
44

55
const { 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
*/
1818
export default function getSlug(slugString, allowedChars = standardSlug) {

0 commit comments

Comments
 (0)