This version introduces an option to check by the length of the strings array. It will also convert line breaks (i.e. \r
, and \n
) into an array of strings.
The README.md
documents the full process. If the length of the strings array does not exceed the limit, there is a chance that it may still be exported to a paste if the number of characters in a single string line (array item) exceeds the defined limits.
That is, the script now checks by the number of items in the strings array (if the HUBOT_LONGTEXT_MAX_LINES
is defined - requires an integer), and by the character length of each item.
View all changes.
As always, please do feel free to open up an issue, make a pull request or contact me if you have any questions, issues, etc. Documentation should be in README.md
and the source code (I am also contactable on IRC at FyreChat #sandbox channel). I have also created an Ask.fm for you to leave any questions that you may have (I do not mind answering anything unrelated to this project, e.g. HTML / CSS in general).