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

Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 1 #9

Closed
destruc7i0n opened this issue Jan 3, 2016 · 5 comments

Comments

@destruc7i0n
Copy link

Keep getting this error for both v3.1 and v3.2 but not v3.0 , I expect it is a bug with your regex.

Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 1
\R
 ^
        at java.util.regex.Pattern.error(Pattern.java:1924)
        at java.util.regex.Pattern.escape(Pattern.java:2416)
        at java.util.regex.Pattern.atom(Pattern.java:2164)
        at java.util.regex.Pattern.sequence(Pattern.java:2046)
        at java.util.regex.Pattern.expr(Pattern.java:1964)
        at java.util.regex.Pattern.compile(Pattern.java:1665)
        at java.util.regex.Pattern.<init>(Pattern.java:1337)
        at java.util.regex.Pattern.compile(Pattern.java:1022)
        at java.lang.String.replaceAll(String.java:2162)
        at co.virtualdragon.vanillaVotifier.impl.PropertiesLanguagePack.getString(PropertiesLanguagePack.java:45)
        at co.virtualdragon.vanillaVotifier.impl.PropertiesLanguagePack.getString(PropertiesLanguagePack.java:38)
        at co.virtualdragon.vanillaVotifier.impl.PropertiesLanguagePack.getString(PropertiesLanguagePack.java:47)
        at co.virtualdragon.vanillaVotifier.impl.VanillaVotifierLogger.printlnTranslation(VanillaVotifierLogger.java:92)
        at co.virtualdragon.vanillaVotifier.impl.VanillaVotifierLogger.printlnTranslation(VanillaVotifierLogger.java:87)
        at co.virtualdragon.vanillaVotifier.impl.VanillaVotifier.main(VanillaVotifier.java:74)
@xmamo
Copy link
Owner

xmamo commented Jan 10, 2016

Thank you for reporting this issue. To say the truth it seems very strange to me that this happens. Are you using Oracle's JRE or the OpenJRE? Which version of the JRE are you using?

@destruc7i0n
Copy link
Author

Oh, I run on Ubuntu, just the latest default-jre, it is Oracles.

@xmamo
Copy link
Owner

xmamo commented Jan 11, 2016

Ubunto actually uses OpenJDK ;P In the next few days I'll try to take a look at what happens with the OpenJDK.

@destruc7i0n
Copy link
Author

Ok

@xmamo
Copy link
Owner

xmamo commented Feb 16, 2016

Sorry if this is taking so long, but until a few days ago I had to study a lot for some exams I had at my university. Anyway, soon I'll publish a big new release in which the error will be fixed :)

@xmamo xmamo closed this as completed Feb 16, 2016
xmamo added a commit that referenced this issue Feb 24, 2016
xmamo added a commit that referenced this issue Sep 25, 2016
xmamo added a commit that referenced this issue Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants