mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00:00
* FIX: paste the spreadsheet to the composer If we paste spreadsheet with the missing label we receive `" this \n1 2"` If we trim whitespace at the beginning then our later calculation to determine if it is a table is incorrect: ``` const columns = rows.map((r) => r.split("\t").length); const isTable = columns.reduce((a, b) => a && columns[0] === b && b > 1) ``` https://meta.discourse.org/t/pasting-from-spreadsheet-wont-work-if-corner-cell-is-empty/169443