From e89026a2fe43e210c15a73c19daf46cc75cd7571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20D=C4=99bi=C5=84ski?= <58430570+mateuszdebinski@users.noreply.github.com> Date: Fri, 14 Jul 2023 07:25:23 +0200 Subject: [PATCH] IBX-6134: Changed ANCHOR_PATTERN to be compatible with xml:id because cannot have : character (#235) --- .../public/js/OnlineEditor/buttons/ez-btn-anchoredit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/OnlineEditor/buttons/ez-btn-anchoredit.js b/src/bundle/Resources/public/js/OnlineEditor/buttons/ez-btn-anchoredit.js index d67e2450..7eac4771 100644 --- a/src/bundle/Resources/public/js/OnlineEditor/buttons/ez-btn-anchoredit.js +++ b/src/bundle/Resources/public/js/OnlineEditor/buttons/ez-btn-anchoredit.js @@ -3,7 +3,7 @@ import AlloyEditor from 'alloyeditor'; const CLASS_HAS_ANCHOR = 'ez-has-anchor'; const CLASS_ICON_ANCHOR = 'ez-icon--anchor'; -const ANCHOR_PATTERN = /^[A-Za-z][A-Za-z0-9\-_:\.]*$/; +const ANCHOR_PATTERN = /^[A-Za-z][A-Za-z0-9\-_\.]*$/; export default class EzBtnAnchorEdit extends Component { constructor(props) {