Skip to content

Commit

Permalink
fix/#781-anchor-link-does-not-pass-valid-link-requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
rizaardiyanto1412 committed Oct 10, 2024
1 parent 67864e9 commit 2e760f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/checklists/assets/js/meta-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,10 @@
},

is_valid_link: function (link) {
if (link.startsWith('#')) {
return true;
}

const linkWithoutFragment = link.split('#')[0];

return linkWithoutFragment.match(
Expand Down

0 comments on commit 2e760f7

Please sign in to comment.