feat: support multi-embed pasting & x.com domain (#7516)

This commit is contained in:
David Luzar
2024-01-04 13:27:52 +01:00
committed by GitHub
parent 4249b7dec8
commit 43ccc875fb
4 changed files with 63 additions and 27 deletions

View File

@@ -1071,3 +1071,7 @@ export function addEventListener(
target?.removeEventListener?.(type, listener, options);
};
}
export const normalizeEOL = (str: string) => {
return str.replace(/\r?\n|\r/g, "\n");
};