Skip to content

Commit

Permalink
strip LTM and RTM entities when normalize text
Browse files Browse the repository at this point in the history
  • Loading branch information
davorpa committed Feb 11, 2022
1 parent ee5f968 commit f0c365d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/alphabetical-list-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const visit = require('unist-util-visit');
const toString = require('mdast-util-to-string');

function normalize(text) {
const removeAtBeginning = /^([-._(《"'])*/;
const removeInside = /[,:]/;
const removeAtBeginning = /^([-._(《"'\u200e\u200f])*/;
const removeInside = /[,:\u200e\u200f]/;
const replaceWithSpace = /-/;
return text.toLowerCase()
.trim()
Expand Down

0 comments on commit f0c365d

Please sign in to comment.