fix multiline arg

This commit is contained in:
Ruben Fiszel
2022-08-23 22:55:18 +02:00
parent a11ab82177
commit 22dbd7d272
+3 -4
View File
@@ -81,10 +81,9 @@
}
function recomputeRowSize(str: string) {
if (str.length > 50) {
minRows = 3
}
if (type != 'string') {
if (type == 'string') {
minRows = str.split('\n').length
} else if (type != 'string') {
minRows = Math.max(minRows, Math.min(str.split(/\r\n|\r|\n/).length + 1, maxRows))
}
}