Skip to content

Commit

Permalink
Fix regex safari (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom authored Mar 14, 2023
1 parent 758b543 commit 78ec1a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = {
process.env.NODE_ENV === 'production'
? 'warn'
: 'off',
'vue/no-v-html': 'off'
'vue/no-v-html': 'off',
'vue/no-unused-components': 'warn',
'no-unused-vars': 'warn'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default {
.toImage(content)
.trim()
.replaceAll(
/(?<!"):[a-z_-]+:/g,
new RegExp('(?<!"):[a-z_-]+:', 'g'),
'<abbr class="no-underline" title="Unable to detect emoji">&#65533;</abbr>'
)
}
Expand Down

0 comments on commit 78ec1a4

Please sign in to comment.