mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix formatting.
This commit is contained in:
parent
7584bf65e2
commit
7227908d74
1 changed files with 10 additions and 10 deletions
|
@ -332,17 +332,17 @@ threading::Value* Ascii::ParseValue(const string& s, const string& name, TypeTag
|
||||||
// a '/'. Rather or not the rest of the string is legal will
|
// a '/'. Rather or not the rest of the string is legal will
|
||||||
// be determined later when it is given to the RE engine.
|
// be determined later when it is given to the RE engine.
|
||||||
if ( cannidate.size() >= 2 )
|
if ( cannidate.size() >= 2 )
|
||||||
{
|
{
|
||||||
if ( cannidate.front() == cannidate.back() &&
|
if ( cannidate.front() == cannidate.back() &&
|
||||||
cannidate.back() == '/' )
|
cannidate.back() == '/' )
|
||||||
{
|
{
|
||||||
// Remove the '/'s
|
// Remove the '/'s
|
||||||
cannidate.erase(0, 1);
|
cannidate.erase(0, 1);
|
||||||
cannidate.erase(cannidate.size() - 1);
|
cannidate.erase(cannidate.size() - 1);
|
||||||
val->val.pattern_text_val = copy_string(cannidate.c_str());
|
val->val.pattern_text_val = copy_string(cannidate.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
GetThread()->Error(GetThread()->Fmt("String '%s' contained no parseable pattern.", cannidate.c_str()));
|
GetThread()->Error(GetThread()->Fmt("String '%s' contained no parseable pattern.", cannidate.c_str()));
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue