Allow dashes in paths #275

This is not a complete fix, but should address the immediate reported issue.
This commit is contained in:
Evan Miller 2021-03-24 09:57:41 -04:00
parent d8a81c49a3
commit 8c2f8221b5

View File

@ -112,7 +112,7 @@ strptime { return STRPTIME; }
(-*[0-9]+|([0-9]*\.[0-9]+)(e[-+]?[0-9]+)?) {
yylval->name = g_strdup(yytext); return NUMBER;
}
~?(\/?[a-z0-9\.\xa0-\xff]+)+ {
~?(\/?[a-z0-9\.\-\xa0-\xff]+)+ {
yylval->name = g_strdup(yytext); return PATH;
}