Special characters on mac #38

Open
nirahiel opened this Issue Mar 26, 2012 · 4 comments

Comments

Projects
None yet
2 participants

I'l having issues with my password on mac.
If my password contains a $ it says login or password incorrect...
Escaping the $ with a \ worked for nodester user setup .... but fails with nodester user setkey ...

Thanks.

Epsilex commented Jun 30, 2012

The issue is because, the command setkey is using a indexOf or replace command and it returns an exception: "illegal group reference" because of the dollar sign which it's interpreted as a param of the function as it's a metacharacter

Epsilex commented Jun 30, 2012

replacement $

Epsilex commented Jun 30, 2012

with two backslashes

Epsilex commented Jun 30, 2012

replacement = Matcher.quoteReplacement(replacement);
a = a.replaceAll("dollar", replacement);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment