From 85c59df9ce6c560fbd01b42be91b366f6e79a9e3 Mon Sep 17 00:00:00 2001 From: jaime-m-p <> Date: Mon, 5 Aug 2024 20:52:25 +0200 Subject: [PATCH] minor: remove trailing whitespaces and extra semicolons --- src/unicode.cpp | 4 ++-- src/unicode.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unicode.cpp b/src/unicode.cpp index 5a2c9bb8a..7cd479450 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -864,7 +864,7 @@ std::vector unicode_regex_split(const std::string & text, const std } // parse more metcharacters and espaped characters - if (cpt == '\\') { + if (cpt == '\\') { switch (cpts_regex[i + 1]) { case 's': ++i; continue; // \s whitespaces case 'w': ++i; continue; // \w words @@ -933,7 +933,7 @@ std::vector unicode_regex_split(const std::string & text, const std if (range.first < range.second) { it->second += (wchar_t) '-'; it->second += (wchar_t) range.second; - } + } } } prev_range = range; diff --git a/src/unicode.h b/src/unicode.h index 536e80ef1..75cdb3f4a 100644 --- a/src/unicode.h +++ b/src/unicode.h @@ -162,7 +162,7 @@ struct codepoint_categ { case 'Z': return Z | (_subindex(subcateg, "lps" ) << 7); default: assert (false); return 0; } - }; + } uint16_t encoded; };