[ 
https://issues.apache.org/jira/browse/WHIMSY-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977325#comment-14977325
 ] 

Sebb commented on WHIMSY-29:
----------------------------

Good call.
On reflection, I agree that there is no need to include the email address at 
all in the RE.
I was not allowing for an entry with no text at all in the CHAIR column, but I 
guess it would make sense to do so.

So probably the RE should be
{code}
scan(/^[ \t]+(\w.*?)(?:[ \t][ \t]+.*|$)/)
{code}

This will match single-space separated words after leading spaces, followed by 
either at least 2 spaces or EOL.

It does not seem necessary to add any further trailing context, though if one 
did want to ensure that the trailing spaces were followed by a Chair name, then 
it should start with \S rather than \w because accents don't match \w (e.g. 
Óscar Bou). I discovered this when I was experimenting.

> public_committee_info.rb cannot handle missing LA chair
> -------------------------------------------------------
>
>                 Key: WHIMSY-29
>                 URL: https://issues.apache.org/jira/browse/WHIMSY-29
>             Project: Whimsy
>          Issue Type: Bug
>            Reporter: Sebb
>         Attachments: WHIMSY-29.patch
>
>
> Legal Affairs now generates two entries:
> {code}
>     "legalaffairs": {
>       "display_name": "Legal Affairs",
>       "site": "http://www.apache.org/legal/";,
>       "description": "Establishing and managing legal policies",
>       "mail_list": "[email protected]",
>       "established": "03/2007",
>       "report": [
>         "Every month"
>       ],
>       "chair": {
>       },
>       "roster": {
>       (elided)
>       },
>       "pmc": true
>     },
> {code}
> and
> {code}
>     "legalaffairsopen": {
>       "display_name": "Legal Affairs             Open",
>       "site": null,
>       "description": null,
>       "mail_list": "legal affairs             open",
>       "established": null,
>       "report": [
>       ],
>       "chair": {
>         "mjc": {
>           "name": "Security Team             Mark J. Cox"
>         }
>       },
>       "roster": {
>       },
>       "pmc": false
>     },
> {code}
> I've no idea where the second entry comes from.
> It looks like the chair is using a stale value - as well as the other obvious 
> errors



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to