mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-07-11 17:51:37 +00:00
style: use raw string literals for escaped strings
- replace string literals containing many escaped characters with raw string literals - clang-tidy modernize-raw-string-literal https://clang.llvm.org/extra/clang-tidy/checks/modernize/raw-string-literal.html
This commit is contained in:
committed by
Dennis Klein
parent
8ab00ecddc
commit
e23c4d8ff1
@@ -181,7 +181,7 @@ try {
|
||||
|
||||
// validate channel name
|
||||
smatch m;
|
||||
if (regex_search(fName, m, regex("[^a-zA-Z0-9\\-_\\[\\]#]"))) {
|
||||
if (regex_search(fName, m, regex(R"([^a-zA-Z0-9\-_\[\]#])"))) {
|
||||
ss << "INVALID";
|
||||
LOG(debug) << ss.str();
|
||||
LOG(error) << "channel name contains illegal character: '" << m.str(0) << "', allowed characters are: a-z, A-Z, 0-9, -, _, [, ], #";
|
||||
|
||||
Reference in New Issue
Block a user