Restore quoting of tags with hyphen

Closes #580 #582

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2024-01-15 22:03:17 +01:00
parent f24b297541
commit 7007e16819
3 changed files with 7 additions and 1 deletions

View file

@ -124,3 +124,5 @@ Thanks to the following, who submitted detailed bug reports and excellent sugges
catexis catexis
Aniket Meshram Aniket Meshram
Joachim Meyer Joachim Meyer
arxel-sc
Eugene Morozov

View file

@ -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 - #583 README - Update build instructions
(thanks to Joachim Meyer) (thanks to Joachim Meyer)

View file

@ -55,7 +55,7 @@ std::string quoteIfNeeded (const std::string& input)
{ {
auto quote = input.find ('"'); auto quote = input.find ('"');
auto space = input.find (' '); auto space = input.find (' ');
auto op = input.find_first_of ("+/()<^!=~_%"); auto op = input.find_first_of ("-+/()<^!=~_%");
if (quote == std::string::npos && if (quote == std::string::npos &&
space == std::string::npos && space == std::string::npos &&