Skip to content

Commit

Permalink
IBX-6134: Changed ANCHOR_PATTERN to be compatible with xml:id because…
Browse files Browse the repository at this point in the history
… cannot have : character (#235)
  • Loading branch information
mateuszdebinski authored Jul 14, 2023
1 parent d3ac5fa commit e89026a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e89026a

Please sign in to comment.