Skip to content

WordCountService edge cases: adjacent block elements and '..' path names #1610

Open

Description

@BenjaminMichaelis

(1) InnerText concatenation likely undercounts words for adjacent block elements with no whitespace (<p>one</p><p>two</p>). (2) relative.StartsWith("..") wrongly rejects legitimate names like ..notes/a.html. (3) ResolvePath duplicates HomeController's path-join logic. Add tests and fix.

Found during review of #1267; intentionally kept out of that PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions