mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Support whitespace at end of line for config reader.
This commit addresses issue #624
This commit is contained in:
parent
48873570b5
commit
cd06cb24cc
3 changed files with 19 additions and 17 deletions
|
@ -199,7 +199,7 @@ bool Config::DoUpdate()
|
|||
}
|
||||
|
||||
regex_t re;
|
||||
if ( regcomp(&re, "^([^[:blank:]]+)[[:blank:]]+(.*)$", REG_EXTENDED) )
|
||||
if ( regcomp(&re, "^([^[:blank:]]+)[[:blank:]]+(.*[^[:blank:]])[[:blank:]]*$", REG_EXTENDED) )
|
||||
{
|
||||
Error(Fmt("Failed to compile regex."));
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue