Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89b0095

Browse files
committed
Allow underscores in tsearch email addressses, per RFC 5322 and report
by Dan O'Hara.Patch by Teodor Sigaev
1 parent66b82c2 commit89b0095

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/tsearch/wparser_def.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.27 2010/01/02 16:57:53 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.28 2010/03/13 00:41:58 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1047,6 +1047,7 @@ static const TParserStateActionItem actionTPS_InAsciiWord[] = {
10471047
{p_iseqC,'.',A_PUSH,TPS_InFileNext,0,NULL},
10481048
{p_iseqC,'-',A_PUSH,TPS_InHostFirstAN,0,NULL},
10491049
{p_iseqC,'-',A_PUSH,TPS_InHyphenAsciiWordFirst,0,NULL},
1050+
{p_iseqC,'_',A_PUSH,TPS_InHostFirstAN,0,NULL},
10501051
{p_iseqC,'@',A_PUSH,TPS_InEmail,0,NULL},
10511052
{p_iseqC,':',A_PUSH,TPS_InProtocolFirst,0,NULL},
10521053
{p_iseqC,'/',A_PUSH,TPS_InFileFirst,0,NULL},
@@ -1375,6 +1376,7 @@ static const TParserStateActionItem actionTPS_InHostDomainSecond[] = {
13751376
{p_isasclet,0,A_NEXT,TPS_InHostDomain,0,NULL},
13761377
{p_isdigit,0,A_PUSH,TPS_InHost,0,NULL},
13771378
{p_iseqC,'-',A_PUSH,TPS_InHostFirstAN,0,NULL},
1379+
{p_iseqC,'_',A_PUSH,TPS_InHostFirstAN,0,NULL},
13781380
{p_iseqC,'.',A_PUSH,TPS_InHostFirstDomain,0,NULL},
13791381
{p_iseqC,'@',A_PUSH,TPS_InEmail,0,NULL},
13801382
{NULL,0,A_POP,TPS_Null,0,NULL}
@@ -1386,6 +1388,7 @@ static const TParserStateActionItem actionTPS_InHostDomain[] = {
13861388
{p_isdigit,0,A_PUSH,TPS_InHost,0,NULL},
13871389
{p_iseqC,':',A_PUSH,TPS_InPortFirst,0,NULL},
13881390
{p_iseqC,'-',A_PUSH,TPS_InHostFirstAN,0,NULL},
1391+
{p_iseqC,'_',A_PUSH,TPS_InHostFirstAN,0,NULL},
13891392
{p_iseqC,'.',A_PUSH,TPS_InHostFirstDomain,0,NULL},
13901393
{p_iseqC,'@',A_PUSH,TPS_InEmail,0,NULL},
13911394
{p_isdigit,0,A_POP,TPS_Null,0,NULL},
@@ -1422,6 +1425,7 @@ static const TParserStateActionItem actionTPS_InHost[] = {
14221425
{p_iseqC,'@',A_PUSH,TPS_InEmail,0,NULL},
14231426
{p_iseqC,'.',A_PUSH,TPS_InHostFirstDomain,0,NULL},
14241427
{p_iseqC,'-',A_PUSH,TPS_InHostFirstAN,0,NULL},
1428+
{p_iseqC,'_',A_PUSH,TPS_InHostFirstAN,0,NULL},
14251429
{NULL,0,A_POP,TPS_Null,0,NULL}
14261430
};
14271431

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp