mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Use string_view for a couple of Dbg methods
This commit is contained in:
parent
eda1b4a23e
commit
92afe64525
3 changed files with 5 additions and 5 deletions
|
@ -27,9 +27,9 @@
|
|||
//
|
||||
// Helper routines
|
||||
//
|
||||
bool string_is_regex(string s)
|
||||
bool string_is_regex(string_view s)
|
||||
{
|
||||
return strpbrk(s.c_str(), "?*\\+");
|
||||
return strpbrk(s.data(), "?*\\+");
|
||||
}
|
||||
|
||||
void lookup_global_symbols_regex(const string& orig_regex, vector<ID*>& matches,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue