In the image, there is a blank line from me doing shift + enter in discord that makes a new line, and then copying and pasting the text into a text box. I use the following code to attempt to remove new lines and compare two strings, one with the extra line and one without. Obviously, this would result in them not equaling each other.
How would I remove the new line to make both strings equal each other?
My current code to remove new lines: (doesn’t work)
v = v:gsub("%s+", ""):gsub("[\n\r]", "")