mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +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
|
||||
// be determined later when it is given to the RE engine.
|
||||
if ( cannidate.size() >= 2 )
|
||||
{
|
||||
if ( cannidate.front() == cannidate.back() &&
|
||||
cannidate.back() == '/' )
|
||||
{
|
||||
// Remove the '/'s
|
||||
cannidate.erase(0, 1);
|
||||
cannidate.erase(cannidate.size() - 1);
|
||||
val->val.pattern_text_val = copy_string(cannidate.c_str());
|
||||
break;
|
||||
}
|
||||
{
|
||||
if ( cannidate.front() == cannidate.back() &&
|
||||
cannidate.back() == '/' )
|
||||
{
|
||||
// Remove the '/'s
|
||||
cannidate.erase(0, 1);
|
||||
cannidate.erase(cannidate.size() - 1);
|
||||
val->val.pattern_text_val = copy_string(cannidate.c_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
GetThread()->Error(GetThread()->Fmt("String '%s' contained no parseable pattern.", cannidate.c_str()));
|
||||
goto parse_error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue