linkie / linkie-discord

The discord bot for using Linkie!
Other
37 stars 4 forks source link

Escape strings (untested) #8

Open Dolphin2Point1 opened 3 years ago

Dolphin2Point1 commented 3 years ago

Attempts to escape strings while parsing arguments. Should fix stuff like this. (Original conversation about this issue on fabricord) It also allows you to escape quotation marks with a backslash. I haven't tested this, so maybe test this before releasing.

shedaniel commented 3 years ago

This doesn't work if there is only 1 quote right

Dolphin2Point1 commented 3 years ago

oh you're right lol

Dolphin2Point1 commented 3 years ago

it currently does work if you put 1 quote, but if I want to fix that I need to write code to look ahead. I could do it but I don't really see that much of a point of doing that, if you want to put a quote you can always just escape it, by not doing that I'm not removing any functionality