Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Fatal Exception java.util.regex.PatternSyntaxException #1

Closed
reinhardt1053 opened this issue Nov 22, 2013 · 7 comments
Closed

Fatal Exception java.util.regex.PatternSyntaxException #1

reinhardt1053 opened this issue Nov 22, 2013 · 7 comments

Comments

@reinhardt1053
Copy link

E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.util.regex.PatternSyntaxException: In a character range [x-y], x is greater than y near index 15:
([^4.941744E-4])
^
at java.util.regex.Pattern.compileImpl(Native Method)
at java.util.regex.Pattern.compile(Pattern.java:407)
at java.util.regex.Pattern.(Pattern.java:390)
at java.util.regex.Pattern.compile(Pattern.java:381)
at java.lang.String.replaceFirst(String.java:1793)
at org.diktor.utils.TextJustify.justifyOperation(TextJustify.java:73)
at org.diktor.utils.TextJustify.justify(TextJustify.java:82)
at org.diktor.utils.TextJustify.run(TextJustify.java:26)

@mathew-kurian
Copy link
Owner

Can you please post the text with which this is happening?

@Peroxide71
Copy link

I reproduced the same error.
For me it happened with the the following line of text: "ckvkcov kcjcjvkvk jckckv".

Would highly apprecite if you fix it. Your library has almost no alternative for Android.

@Peroxide71
Copy link

As this question was critical to me, already fixed this by myself. Also fixed freeze which appeared for some texts.
Could you provide me access to create a branch? I get 403 while attempting to push my branch.

@mathew-kurian
Copy link
Owner

@Peroxide71 Try it now, I have edited the config file. I am no expert in git, so the best I can tell you now is delete the originals and then reclone and then push in the changes. Looking forward to seeing your updates. I also suggest you read this http://stackoverflow.com/questions/7690317/cant-push-commits-to-central-repository which can help ensure the problem is not from your end.

@Peroxide71
Copy link

I have cleaned and recloned local repo, set a branch for pushing, still showing 403 with https request.
Tommorow I will create my repo and give you a link, try to update from there.

@mathew-kurian
Copy link
Owner

Try to do a fork and then edit on the master branch (of the fork, which is on your side) and then do a pull request to my branch. A pull request is telling the upstream repository (which in this case is mine) to "pull" the modifications from your fork. Then I will go through and merge in any conflicts it might cause. Try that and let me know if there are any problems.

@mathew-kurian
Copy link
Owner

I have provided an update. This should resolve your problem!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants