Change path spec to either start with / or ./

This commit is contained in:
dcp1990 2005-06-19 00:15:10 +00:00
parent ea60cf668b
commit 0b1e1203c2
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ modemdev return MODDEV;
\{ return OBRACE;
\} return CBRACE;
\/[^\n]+\/ yylval.string = strdup(yytext); return REGEX;
\/[a-zA-Z0-9/._-]+ yylval.string = strdup(yytext); return PATH;
[./][a-zA-Z0-9/._-]+ yylval.string = strdup(yytext); return PATH;
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} yylval.string = strdup(yytext); return IPADDR;
[a-zA-Z0-9_-]+ yylval.string = strdup(yytext); return FNAME;
; return SCOLON;

View File

@ -1,7 +1,7 @@
main {
modemdev "/dev/cuaa2";
loglevel all;
database "phoned.db";
database "./phoned.db";
};
filters {
filter test1 {