Skip to content

Commit

Permalink
fix: remove replaceall from table (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
120EE0692 authored Nov 5, 2022
1 parent ab87c65 commit 93c4ac8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/components/article/ArticleTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const ArticleTable = ({ data, blockFormatting }) => {

const table = tableData
.slice(3, -3)
.replaceAll(`\"`, '')
.replace(/\\\"/g, '')
.split('],[')
.map((row) => row.split(','));
.map((row) => row.split(','))
.map((row) => row.map((cell) => cell.slice(1, -1)));

const { hasHeaderColumn, hasHeaderRow } = blockFormatting;

Expand Down

0 comments on commit 93c4ac8

Please sign in to comment.