sonar-java icon indicating copy to clipboard operation
sonar-java copied to clipboard

SONARJAVA-5098 Fix regexp that finds '\n'

Open Ivan-Igorevich opened this issue 6 months ago • 1 comments

  • 'String#contains()` method finds '\n' as a false-positive new line symbol. In several cases symbols, including 'n', may follow an escaped backslash to generate '\n' as a printed out string, e.g. LaTeX code generator.
  • [ ] Unit tests are passing
  • [ ] Provided a unit test for your fix
  • [ ] ITs should pass : To run ITs locally, checkout the README of the project.

Ivan-Igorevich avatar Aug 12 '24 17:08 Ivan-Igorevich