Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: 9ade26b9b5a2e84504f564f7cf36efc86a489a74
      https://github.com/pmd/pmd/commit/9ade26b9b5a2e84504f564f7cf36efc86a489a74
  Author: Lukas Gräf <[email protected]>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M docs/pages/release_notes.md
    M pmd-html/src/main/java/net/sourceforge/pmd/lang/html/ast/LineNumbers.java
    M 
pmd-html/src/test/java/net/sourceforge/pmd/lang/html/cpd/HtmlCpdLexerTest.java
    A 
pmd-html/src/test/resources/net/sourceforge/pmd/lang/html/cpd/testdata/UnescapedTagInScript.html
    A 
pmd-html/src/test/resources/net/sourceforge/pmd/lang/html/cpd/testdata/UnescapedTagInScript.txt

  Log Message:
  -----------
  [html] Fix #6135: HtmlCpdLexer giving IndexOutOfBoundsException when script 
contains unescaped closing tag (#7028)

* [html] Fix #6135: HtmlCpdLexer giving IndexOutOfBoundsException when script 
contains unescaped closing tag

* Also fix end location, extend test input

* Refactor -> extract method

This way handling of start and end of comments is symmetrical and close 
together.

---------

Co-authored-by: Sören Glimm <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/pmd/pmd/settings/notifications


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to