FIX: Strip null characters (#17)

This commit is contained in:
Penar Musaraj 2022-08-12 14:14:01 -04:00 committed by GitHub
parent a8f27d9131
commit 9abd57e5b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ export default class SpreadsheetEditor extends Component {
editedTable = raw.replace(findTableRegex(), newRaw); editedTable = raw.replace(findTableRegex(), newRaw);
} }
// replace null characters
editedTable = editedTable.replace(/\0/g, "\ufffd");
return editedTable; return editedTable;
} }