-
Notifications
You must be signed in to change notification settings - Fork 44
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
java.util.regex.PatternSyntaxException: Unclosed group near index 9 [error] (target\) #5
Comments
why are you guys passing raw strings to regex? what if filename contains ? or [ |
Thanks for reporting. This was a piece of code I wrote in my early days and
got copy pasted around. The correct solution I believe is to use nio
PathMatcher and that's what scalafix in current master does. PRs welcome!
…On Thu, 28 Jun 2018 at 17:40, OlegYch ***@***.***> wrote:
why are you guys passing raw strings to regex? what if filename contains ?
or [
noticed same issue in scalafix
scalacenter/scalafix#583
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABV8XZlzyoI91G7kSB-cMzLWH5e1_p-Dks5uBPjpgaJpZM4U7maX>
.
|
I can format files when using |
I can't reproduce it with |
running sbt-scalafmt 1.6.0-RC3 on windows
executing either
scalafmt
orscalafmSbt
The text was updated successfully, but these errors were encountered: