whoami? iam!
Nathaniel McCallum
npmccallum at gentoo.org
Fri Dec 16 13:49:20 GMT 2005
On Fri, 2005-12-16 at 09:47 +0100, Matthieu Moy wrote:
> Bjorn Tillenius <bjorn.tillenius at gmail.com> writes:
>
> > On Fri, Dec 16, 2005 at 12:59:18AM -0600, Michael Ellerman wrote:
> >> On Fri, 16 Dec 2005 00:27, Nathaniel McCallum wrote:
> >> > Thought this plugin (attached) may like to be included.
> >> >
> >> > Nathaniel
> >>
> >> It might be nice to try and validate the input, to catch typos more than
> >> anything. I have a script which uses the following regexps to check email
> >> addresses, although I didn't write it so I can't vouch for it's correctness -
> >> but it looks ok to me.
> >>
> >> email_re = re.compile("[a-zA-Z0-9\.]+\@[a-zA-Z0-9\.]+")
> >> email_name_re = re.compile("(\w|\s)+\<[a-zA-Z0-9\.]+\@[a-zA-Z0-9\.]+\>")
> >
> > Well, for example, it won't match:
> >
> > "Foo.Bar" <foo at bar.com>
>
> or foo_bar at yahoo.com
>
I'm not validating input at the moment because I needed a quick hack to
get some newbies trained on how to use *any* VCS without giving them too
many details to remember (ie. where the heck was that config file? What
was its syntax? etc...). After Christmas I'd like to expand it to also
handle the "current branch" vs "global" case and validate input.
Nathaniel
More information about the bazaar
mailing list