We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83fe1b commit bec827bCopy full SHA for bec827b
src/utils/contentApi.ts
@@ -354,7 +354,7 @@ export default class ContentApi {
354
// we remove any special characters from the end of the label
355
// to make it look cleaner in the UI
356
// @ts-ignore
357
- label = label.replace(/[^\p{L}\p{N}]+$/u, "");
+ label = label.replace(/[^\p{Letter}\p{Number}]+$/u, "");
358
359
// if (!duplicator.has(label)) {
360
// duplicator.set(label, 0);
@@ -391,7 +391,7 @@ export default class ContentApi {
391
.replace(/\s+/g, "-")
392
.replace(/\./g, "")
393
394
- .replace(/[^\p{L}\p{N}]+/gu, "-")
+ .replace(/[^\p{Letter}\p{Number}]+/gu, "-")
395
.replace(/^-/g, "")
396
.replace(/-$/g, "")
397
.replace(/--+/g, "-")
0 commit comments