mirror of https://github.com/apache/lucene.git
- 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:
parent
a6d7df46a4
commit
8bcc042f5a
|
@ -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>)+ >
|
||||
|
|
Loading…
Reference in New Issue