- Changed the grammar for EMAIL token in order to match user names and

host names with additional valid user name and host name characters, such
  as '.", '-', and '_'.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2002-06-05 04:54:47 +00:00
parent a6d7df46a4
commit 8bcc042f5a
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ TOKEN : { // token patterns
| <COMPANY: <ALPHA> ("&"|"@") <ALPHA> >
// email addresses
| <EMAIL: <ALPHANUM> "@" <ALPHANUM> ("." <ALPHANUM>)+ >
| <EMAIL: <ALPHANUM> ("."|"-"|"_" <ALPHANUM>)+ "@" <ALPHANUM> ("."|"-" <ALPHANUM>)+ >
// hostname
| <HOST: <ALPHANUM> ("." <ALPHANUM>)+ >