mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

This surfaced in .NET that the string in the driver got incorrectly cut, then transferred to .NET as an invalid UTF8 character [`\ud835`](https://charbase.com/d835-unicode-invalid-character) which .NET wasn't able to parse and threw an error. Drive-by: Move similar function from `packages/playwright-core/src/client/page.ts` into isomorphic `stringUtils`. https://github.com/microsoft/playwright-dotnet/issues/2748