Procházet zdrojové kódy

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

[cm6] Remove negative lookbehind in regex

GitOrigin-RevId: 30c19680b1e20011945a7185a966100dc5e25d13
John Lees-Miller před 3 roky
rodič
revize
48ee8779f0

+ 1 - 1
services/web/frontend/js/features/source-editor/components/table-generator/cell.tsx

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