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
The former is caused by \n characters being trimmed after the script element is processed into statements. A possible solution could be to re-append the \n character, and remove it (or escape it) prior to printing to output.
The latter is caused by the way in which the strings are manipulated during tag extraction. As the loop searches for the string of least length that satisfies the regex, the last character is trimmed away and the end of the line, i.e. $, moves one character to the left. Unsure how to solve this one.
The text was updated successfully, but these errors were encountered:
sjb-ch1mp
changed the title
Terminating charactera \n and $ not working as expected.
Terminating characters \n and $ not working as expected.
Nov 21, 2020
The former is caused by \n characters being trimmed after the script element is processed into statements. A possible solution could be to re-append the \n character, and remove it (or escape it) prior to printing to output.
The latter is caused by the way in which the strings are manipulated during tag extraction. As the loop searches for the string of least length that satisfies the regex, the last character is trimmed away and the end of the line, i.e. $, moves one character to the left. Unsure how to solve this one.
The text was updated successfully, but these errors were encountered: