Don't throw "token not found"

This commit is contained in:
2025-06-10 15:26:56 +00:00
parent 88ddfa79be
commit 74e2259b5c

View File

@ -19,8 +19,6 @@ export const findRunElementIndexWithToken = (paragraphElement: Element, token: s
} }
} }
} }
throw new Error("Token not found");
}; };
export const splitRunElement = (runElement: Element, token: string): { readonly left: Element; readonly right: Element } => { export const splitRunElement = (runElement: Element, token: string): { readonly left: Element; readonly right: Element } => {