Skip to content

Commit

Permalink
Update text.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jul 31, 2024
1 parent db87322 commit e53ab38
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/cspell-lib/src/lib/util/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export function matchStringToTextOffset(reg: RegExp, text: string): Iterable<Tex
export function matchToTextOffset(reg: RegExp, text: TextOffset): Iterable<TextOffset> {
const textOffset = text;
const fnOffsetMap = offsetMap(textOffset.offset);
textOffset.text.matchAll(reg);
return pipe(
match(reg, textOffset.text),
opMap((m) => fnOffsetMap<TextOffset>({ text: m[0], offset: m.index || 0 })),
Expand Down

0 comments on commit e53ab38

Please sign in to comment.