Skip to content

Commit

Permalink
Update options.concatCjk default value to true in semantic.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shtse8 committed Apr 10, 2024
1 parent 8188a26 commit 7b96129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/semantic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function semanticWords(text: string, concatCjk = false): string[] {
*
* @param {string} text - The input string to slugify.
* @param {object} [options={}] - Configuration options for slugification.
* @param {boolean} [options.concatCjk=false] - Whether to treat consecutive CJK characters as a single word.
* @param {boolean} [options.concatCjk=true] - Whether to treat consecutive CJK characters as a single word.
* @param {boolean} [options.lowercase=true] - Whether to convert the slug to lower case.
* @param {string} [options.separator='-'] - The separator to use between words in the slug.
* @param {number} [options.length=Infinity] - The desired maximum length of the generated slug. The function attempts not to exceed this length while preserving semantic integrity.
Expand All @@ -213,7 +213,7 @@ export function slugify(text: string, options: {
length?: number
} = {}): string {
const {
concatCjk = false,
concatCjk = true,
lowercase = true,
separator = '-',
length = Infinity,
Expand Down

0 comments on commit 7b96129

Please sign in to comment.