Skip to content

Commit 78ec1a4

Browse files
authored
Fix regex safari (#647)
1 parent 758b543 commit 78ec1a4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module.exports = {
2424
process.env.NODE_ENV === 'production'
2525
? 'warn'
2626
: 'off',
27-
'vue/no-v-html': 'off'
27+
'vue/no-v-html': 'off',
28+
'vue/no-unused-components': 'warn',
29+
'no-unused-vars': 'warn'
2830
}
2931
}

frontend/src/modules/activity/components/activity-content.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default {
162162
.toImage(content)
163163
.trim()
164164
.replaceAll(
165-
/(?<!"):[a-z_-]+:/g,
165+
new RegExp('(?<!"):[a-z_-]+:', 'g'),
166166
'<abbr class="no-underline" title="Unable to detect emoji">&#65533;</abbr>'
167167
)
168168
}

0 commit comments

Comments
 (0)