Skip to content

Commit 73778c7

Browse files
committed
Remove redundant comments from apply search replace to content utility
1 parent 65912a4 commit 73778c7

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎apps/editor/src/utils/changes-integration/search-replace-processor/apply-search-replace-to-content/apply-search-replace-to-content.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const IGNORABLE_CHAR_REGEX = /[\s\u200B-\u200F\uFEFF]/
66
type Normalizer = (line: string) => string
77

88
type IndexedLine = {
9-
// Absolute offset of the line start (including leading whitespace)
109
start: number
11-
// Absolute offset right after the last visible character of the line
1210
content_end: number
1311
normalized: string
1412
}
@@ -224,9 +222,6 @@ export const apply_search_replace_to_content = (params: {
224222
? next.lines.slice(0, MAX_CONTEXT_LINES)
225223
: []
226224

227-
// Line-based matching (no giant regex) - avoids stack overflows and
228-
// "regular expression too large" errors for long blocks, notably on
229-
// Windows where the thread stack is small.
230225
const find_params = {
231226
content: current_content,
232227
from: cursor,

0 commit comments

Comments
 (0)