mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Restore quoting of tags with hyphen
Closes #580 #582 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
f24b297541
commit
7007e16819
3 changed files with 7 additions and 1 deletions
2
AUTHORS
2
AUTHORS
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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 &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue