Skip to content

Commit

Permalink
Satisfy eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Apr 15, 2024
1 parent 2dda6bf commit 1532c1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rrweb-snapshot/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,11 @@ export function findCssTextSplits(
typeof childNodes[i].textContent === 'string'
) {
const textContentNorm = normalizeCssString(childNodes[i].textContent!);
for (let j = 3; j < textContentNorm!.length; j++) {
for (let j = 3; j < textContentNorm.length; j++) {
// find the smallest substring that appears only once
let bit = textContentNorm!.substring(0, j);
const bit = textContentNorm.substring(0, j);
if (cssTextNorm.split(bit).length === 2) {
let splitNorm = cssTextNorm.indexOf(bit);
const splitNorm = cssTextNorm.indexOf(bit);
// find the split point in the original text
for (let k = splitNorm; k < cssText.length; k++) {
if (
Expand Down

0 comments on commit 1532c1b

Please sign in to comment.