From cc95217ff98ed0cdf2e4a5f06e209800923c85cc Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Wed, 26 May 2021 15:27:49 +0300 Subject: [PATCH] fixes #24710 --- packages/editor/src/utils/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/utils/url.js b/packages/editor/src/utils/url.js index bf2130be9caa7f..69085881531604 100644 --- a/packages/editor/src/utils/url.js +++ b/packages/editor/src/utils/url.js @@ -45,7 +45,7 @@ export function cleanForSlug( string ) { return trim( deburr( string ) .replace( /[\s\./]+/g, '-' ) - .replace( /[^\w-]+/g, '' ) + .replace( /[^\w-]+/gu, '' ) .toLowerCase(), '-' );