Skip to content

Commit

Permalink
Fix filter span missing, remove RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 19, 2023
1 parent 0cc7a50 commit 9ffddfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export default defineComponent({
if (unref(membersListRef)) {
markInstance.value = new Mark(unref(membersListRef))
unref(markInstance).unmark()
const searchTermRegex = new RegExp(`\\b${unref(filterTerm)}\\b`, 'gi')
unref(markInstance).markRegExp(searchTermRegex, {
const searchTermRegex = unref(filterTerm)
unref(markInstance).mark(searchTermRegex, {
element: 'span',
className: 'highlight-mark'
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
data-testid="group-members-list"
>
<oc-avatar :user-name="member.displayName" :width="36" class="oc-mr-s" />
{{ member.displayName }}
<span>{{ member.displayName }}</span>
</li>
</ul>
</template>
Expand Down

0 comments on commit 9ffddfe

Please sign in to comment.