1
0
Fork 0

use raw character data for regex definition

This commit is contained in:
Kevin Matz 2023-05-13 11:33:45 -04:00
parent 983ae8a412
commit 63df16831e
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ std::string Method::name() const
*/
bool Method::setName(std::string name)
{
std::regex bad_chars("[ #*,/\?\[]\{}]"); // ' ' # * , / ? [ ] { }
std::regex bad_chars(R"([ #*,/\?\[\]\{\}])"); // ' ' # * , / ? [ ] { }
if (std::regex_search(name, bad_chars))
return false;
name_ = name;