From 7007e16819fc81323dc26050c8c22b95610ffd5d Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Mon, 15 Jan 2024 22:03:17 +0100 Subject: [PATCH] Restore quoting of tags with hyphen Closes #580 #582 Signed-off-by: Thomas Lauf --- AUTHORS | 2 ++ ChangeLog | 4 ++++ src/util.cpp | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index faa41972..6bf37887 100644 --- a/AUTHORS +++ b/AUTHORS @@ -124,3 +124,5 @@ Thanks to the following, who submitted detailed bug reports and excellent sugges catexis Aniket Meshram Joachim Meyer + arxel-sc + Eugene Morozov diff --git a/ChangeLog b/ChangeLog index d194f932..66d25a18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +- #580 internal parsing of tags starting with number broken + (thanks to arxel-sc) +- #582 Retrieval of intervals with tags containing hyphens is broken + (thanks to Eugene Morozov) - #583 README - Update build instructions (thanks to Joachim Meyer) diff --git a/src/util.cpp b/src/util.cpp index 659a749f..2b2cb407 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -55,7 +55,7 @@ std::string quoteIfNeeded (const std::string& input) { auto quote = input.find ('"'); auto space = input.find (' '); - auto op = input.find_first_of ("+/()<^!=~_%"); + auto op = input.find_first_of ("-+/()<^!=~_%"); if (quote == std::string::npos && space == std::string::npos &&