You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/10/22 12:14:00 UTC
[jira] [Commented] (RAT-507) Copyright matcher fails for some input.
[ https://issues.apache.org/jira/browse/RAT-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032069#comment-18032069 ]
ASF subversion and git services commented on RAT-507:
-----------------------------------------------------
Commit 4624cda5f6b86e08502681aff1742b4b386f21ac in creadur-rat's branch refs/heads/master from P. Ottlinger
[ https://gitbox.apache.org/repos/asf?p=creadur-rat.git;h=4624cda5 ]
Merge pull request #562 from Claudenw/RAT-507_copyright_matcher_errors
RAT-507: fixed copyright parsing issues
> Copyright matcher fails for some input.
> ---------------------------------------
>
> Key: RAT-507
> URL: https://issues.apache.org/jira/browse/RAT-507
> Project: Apache Rat
> Issue Type: Bug
> Components: core engine
> Affects Versions: 0.17
> Reporter: Claude Warren
> Priority: Major
> Fix For: 1.0.0
>
>
> When matching the owner name the input string is taken as a literal. However, if the file in which the copyright notice was placed has wrapped the text there will be other non-space characters, including leading comment characters or formatting characters.
> This change should process the owner name string and replace any contiguous whitspace characters with "\W+" In addition any tokens (the things at the beginning, ending, and between the whitespace) should be surrounded with "\Q" and "\E" to prohibit the token from being parsed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)