Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace effect escaping special characters with case sensitive setting #1226

Closed
TPGamesNL opened this issue Apr 30, 2018 · 4 comments
Closed
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

Comments

@TPGamesNL
Copy link
Member

TPGamesNL commented Apr 30, 2018

When I try the code:
Code
and type /rp $ it results in \$
and when I type /rp \ it results in \\
but all the other characters I put in don't get a \, for example:
/rp a: a
/rp &: &
EDIT:
Okay nevermind I just tried it on a fresh server without addons and it worked normally so I'm going to figure out what addon causes it
EDIT 2:
I tried all the addons I had on my server, and none of them caused the issue, then I tried copying my Skript config to the new bug test server and removing the addons, and the problem was back. Then I regenerated Skript's config and after that setting case sensitive to true, and there it was again.
So the problem remains:
with the code https://pastebin.com/raw/S7DecMa5 the 2 characters ($ and \) get an extra \ in front of them when using the replace effect.

@Pikachu920
Copy link
Member

are you on the latest skript?

@TPGamesNL
Copy link
Member Author

Yes, I'm using dev35b

@Snow-Pyon Snow-Pyon added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). labels May 5, 2018
@Snow-Pyon Snow-Pyon changed the title Replace effect adding \ when using the characters $ and \ Replace effect escaping special characters with case sensitive setting May 5, 2018
@Snow-Pyon
Copy link

Tested and looks like this only happens with the case sensitive option on. Probably fixed for the next release.

@Whimsyturtle Whimsyturtle added the needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. label Jul 10, 2020
@TPGamesNL
Copy link
Member Author

Code disappeared, test code:

command /test:
	trigger:
		set {_test} to "a"
		replace all "a" with "$" in {_test}
		message {_test}

outputs \$ while expected is $.

Case sensitive must be set to true when the server is starting to produce this bug

@TPGamesNL TPGamesNL added PR available Issues which have a yet-to-be merged PR resolving it and removed needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. labels Jun 24, 2021
@APickledWalrus APickledWalrus added completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Projects
None yet
Development

No branches or pull requests

6 participants