edithturn commented on issue #15994:
URL: https://github.com/apache/airflow/issues/15994#issuecomment-1102833455

   This regex `(?i)(black|white)[_-]?list` just will find black and white 
followed with "list", if I am not wrong, for that reason it doesn't work 
completely with all words.
   
   > The bracketed characters [_-] (underscore and dash) indicate that the 
alphanumeric pattern must be followed by an underscore or a dash.
   
   The correct could be this:
   `      entry: >
             (?ix)
             \bmaster\b|
             \bhe\b|
             \bshe\b|
             \bhis\b|
             \bher\b|
             \bslave\b|
             \bsanity\b|
             \bdummy\b|
             \bwhite\b|
             \bblack\b`
   
   **i** = Use case-insensitive matching. For more information, (edited) 
   **x** = Exclude unescaped white space from the pattern, and enable comments 
after a number sign (#).
   
   I will try!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to