Claude Warren created RAT-507:
---------------------------------

             Summary: 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


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)

Reply via email to