Skip to content

Commit 41e0480

Browse files
thetarnavgithub-actions[bot]
authored andcommitted
Format
1 parent 8153bfa commit 41e0480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/selection/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const getTextNodes = (startNode: Node) => {
1717
const addNodeLength = (length: number, node: Node) => length + (node as Text).data.length;
1818

1919
const getRangePos = (container: Node, offset: number, texts: Node[]) => {
20-
const index = texts.findIndex((text) => text === container || text.parentElement === container);
20+
const index = texts.findIndex(text => text === container || text.parentElement === container);
2121
return index === -1 ? NaN : texts.slice(0, index).reduce(addNodeLength, 0) + offset;
2222
};
2323

0 commit comments

Comments
 (0)