Skip to content

Commit

Permalink
Merge pull request #91 from jacobbudin/main
Browse files Browse the repository at this point in the history
Normalize backlink slug comparison
  • Loading branch information
binyamin authored Oct 26, 2022
2 parents 2ab07bb + 472c889 commit 77be371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/notes.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {titleCase} = require("title-case");
const wikilinkRegExp = /\[\[\s?([^\[\]\|\n\r]+)(\|[^\[\]\|\n\r]+)?\s?\]\]/g

function caselessCompare(a, b) {
return a.toLowerCase() === b.toLowerCase();
return a.normalize().toLowerCase() === b.normalize().toLowerCase();
}

module.exports = {
Expand Down

0 comments on commit 77be371

Please sign in to comment.