Skip to content

Default copyright pattern doesn't allow commas #9477

@dopplershift

Description

@dopplershift

As of ruff 0.1.11, the default notice-rgx does not allow for headers that have commas, like:

Copyright (c) 2018, 2019 Developers

Part of the docs do say that (?i)Copyright\s+(\(C\)\s+)?\d{4}([-,]\d{4})* is the default pattern (which works), but there's also (?i)Copyright\s+(\(C\)\s+)?\d{4}(-\d{4})* mentioned in a separate sentence in the docs and matches what's in COPYRIGHT (and reflects actual behavior). Any reason commas shouldn't be accepted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions