plasma-umass / cwhy

"See why!" Explains and suggests fixes for compile-time errors for C, C++, C#, Go, Java, LaTeX, PHP, Python, Ruby, Rust, and TypeScript
Apache License 2.0
272 stars 6 forks source link

Fix #12 #13

Closed nicovank closed 1 year ago

nicovank commented 1 year ago

The Java regex was grepping too much by accident. Here I just make sure the line / path starts with a sensible character (not including whitespace): [a-zA-Z0-9./] which should be virtually all paths. Will that still work for Java?