Skip to content

Commit

Permalink
Add delimeter to raw string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
64json committed Feb 15, 2019
1 parent ee12484 commit 1878be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.2)

project(algorithm-visualizer VERSION 2.3.1)
project(algorithm-visualizer VERSION 2.3.2)

set(CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion include/LogTracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LogTracer : public Tracer {
va_start(args, format);
string::const_iterator searchStart(format.cbegin());
const std::regex exp(
R"((?:[^\x25]|^)(?:\x25{2})*\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX]))");
R"RAW((?:[^\x25]|^)(?:\x25{2})*\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX]))RAW");
std::smatch match;
while (std::regex_search(searchStart, format.cend(), match, exp)) {
char specifier = match.str(8).at(0);
Expand Down

0 comments on commit 1878be6

Please sign in to comment.