Skip to content

Commit

Permalink
bebug
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchiuli committed Dec 22, 2024
1 parent ec69fa8 commit 8628ce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/sys/EditorItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const selectWord = (row: SensitiveContentItem) => {
const handleClose = () => {
selectSensitiveData.value = []
showSensitiveListDialog.value = false
}
const findAllOccurrences = (text: string, pattern: string) => {
Expand All @@ -132,7 +133,7 @@ const findAllOccurrences = (text: string, pattern: string) => {
occurrences.push({
startIndex: match.index,
endIndex: match.index + text.length,
content: `${content.value!.substring(frontIdx, idx)}\u001f${text}\u001f${content.value!.substring(idx, behindIdx)}`
content: `${content.value!.substring(frontIdx, idx)}\u001f${text}\u001f${content.value!.substring(idx + text.length, behindIdx)}`
})
}
Expand Down

0 comments on commit 8628ce5

Please sign in to comment.