mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #480 - @ Symbol in context not returning
- Fixed bug #480, which didn't properly support @ characters in tags. The problem was that the ctype.h ispunct() function considers @, # and $ to be punctuation, which I don't. An override now allows these characters in tags, and specificallt '+@context' style tags. - Added unit tests.
This commit is contained in:
parent
3cfcc9fb6b
commit
58d678f927
5 changed files with 100 additions and 6 deletions
|
@ -55,6 +55,7 @@ bool noSpaces (const std::string&);
|
|||
bool noVerticalSpace (const std::string&);
|
||||
bool isWordStart (const std::string&, std::string::size_type);
|
||||
bool isWordEnd (const std::string&, std::string::size_type);
|
||||
bool isPunctuation (char);
|
||||
bool compare (const std::string&, const std::string&, bool sensitive = true);
|
||||
std::string::size_type find (const std::string&, const std::string&, bool sensitive = true);
|
||||
std::string::size_type find (const std::string&, const std::string&, std::string::size_type, bool sensitive = true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue