Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 010206a

Browse files
committed
modified replace function
1 parent 81ccb55 commit 010206a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/text-buffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,8 +1608,8 @@ class TextBuffer {
16081608
let replacements = 0
16091609

16101610
this.transact(() => {
1611-
return this.scan(regex, function ({matchText, replace}) {
1612-
replace(matchText.replace(regex, replacementText))
1611+
return this.scan(regex, function ({replace}) {
1612+
replace(replacementText)
16131613
return replacements++
16141614
})
16151615
})

0 commit comments

Comments
 (0)