Skip to content
Snippets Groups Projects
Commit f5e007c3 authored by bdr7fv's avatar bdr7fv
Browse files

Regular expression for ret in PNRegularExpressions no longer works, the...

Regular expression for ret in PNRegularExpressions no longer works, the pattern now matches for ret followed by any number of blank lines. ret must be the fist entry on the line. 


Former-commit-id: 06403e51e60a39e82ec6ed5e44ea4253680e2ac5
parent 739ca4ab
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ PNRegularExpressions::PNRegularExpressions()
exit(1);
}
if (regcomp(&regex_ret, "^ret$", REG_EXTENDED | REG_ICASE) != 0)
if (regcomp(&regex_ret, "^ret[[:blank:]]*$", REG_EXTENDED | REG_ICASE) != 0)
{
fprintf(stderr,"Error: regular expression for ret failed to compile\n");
exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment