You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When submitting a form with a multiline value such as:
Test line one,
Test Line Two
Anything after 'Test line one' gets removed.
After some debugging I figured out that this code (line 50 as of now):
.split(/\r\n\r\n/)[1]
is the issue. The input of the sample text above looks like so:
\r\n\r\nTest line one,\r\n\r\nTest Line Two\r\n
And the split() call is only taking the first element in the array, which is Test line one,.
Quick solution
For now, I just changed that line to this:
.split(/\r\n\r\n/).slice(1).join("\r\n")
Keep in mind that this changes any amount of new lines to a single new line. I don't have time to create a PR, but you could do something similar to support multi line inputs.
The text was updated successfully, but these errors were encountered:
Issue
When submitting a form with a multiline value such as:
Anything after 'Test line one' gets removed.
After some debugging I figured out that this code (line 50 as of now):
is the issue. The input of the sample text above looks like so:
And the split() call is only taking the first element in the array, which is
Test line one,
.Quick solution
For now, I just changed that line to this:
Keep in mind that this changes any amount of new lines to a single new line. I don't have time to create a PR, but you could do something similar to support multi line inputs.
The text was updated successfully, but these errors were encountered: