Skip to content

Commit

Permalink
only leading quote
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Mar 8, 2024
1 parent 7a3e026 commit 46c46f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var Utilities = {
});

// protect leading capital
text.replace(/(^|[“"])(<[^>]+>)?([\p{Lu}])/gu, (match, prefix, markup, char, offset) => {
text.replace(/^([“"]?)(<[^>]+>)?([\p{Lu}])/gu, (match, prefix, markup, char, offset) => {
markup = markup || ""
preserve.push({ start: offset + prefix.length + markup.length, end: offset + prefix.length + markup.length + char.length });
});
Expand Down

0 comments on commit 46c46f4

Please sign in to comment.