Merge pull request #14221 from overleaf/mj-regex-fix

[cm6] Remove negative lookbehind in regex

GitOrigin-RevId: 30c19680b1e20011945a7185a966100dc5e25d13
This commit is contained in:
John Lees-Miller 2023-08-08 15:35:34 +01:00 committed by Copybot
parent 6a9c9652f9
commit 48ee8779f0

View file

@ -62,7 +62,7 @@ export const Cell: FC<{
const filterInput = (input: string) => {
// TODO: Are there situations where we don't want to filter the input?
return input.replaceAll(/(?<!\\)&/g, '\\&').replaceAll('\\\\', '')
return input.replaceAll('\\\\', '')
}
const isFocused =