Skip to content

Commit

Permalink
fix: remove variation selector
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 29, 2020
1 parent e7f7d07 commit 6a0b345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/modules/utils/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ ${headers.components

const headingText = headingHtml
.replace(
/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,
/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])\uFE0F?/g,
'',
) // remove emojis
.replace(/<\/?[^>]+(>|$)/g, '') // remove HTML
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/utils/textToHash.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function textToHash(text, unique = {}) {
.replace(/=&gt;|&lt;| \/&gt;|<code>|<\/code>|&#39;/g, '')
.replace(/[!@#$%^&*()=_+[\]{}`~;:'"|,.<>/?\s]+/g, '-')
.replace(
/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,
/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])\uFE0F?/g,
'',
) // remove emojis
.replace(/-+/g, '-')
Expand Down

0 comments on commit 6a0b345

Please sign in to comment.