mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 11:12:23 +08:00
bd0b558a89
* 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 |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |