Skip to content

Commit

Permalink
Update src/bundle/Resources/public/js/CKEditor/link/ui/link-form-view.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Brzegowski <[email protected]>
  • Loading branch information
vidarl and tischsoic authored Jun 25, 2024
1 parent a9b4305 commit f4d2fab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class IbexaLinkFormView extends View {
const relativeLinkPrefix = '/';
const schemaPattern = /^[a-z0-9]+:\/?\/?/i;
const isAnchor = href.indexOf(anchorPrefix) === 0;
const isRelativeLink = href.indexOf(relativeLinkPrefix) === 0;
const isRelativeLink = href.startsWith(relativeLinkPrefix);
const isLocation = schemaPattern.test(href);

if (isAnchor || isLocation || isRelativeLink) {
Expand Down

0 comments on commit f4d2fab

Please sign in to comment.