xaizek / dit (License: GPLv3) (since 2018-12-07)
Command-line task keeper that remembers all old values and is meant to combine several orthogonal features to be rather flexible in managing items.
Commit 311db51b9e99d1c486d8ddf1d064727e674e2a50

Fix case not being ignored by # and !/ conditions
Author: xaizek
Author date (UTC): 2018-10-31 18:15
Committer name: xaizek
Committer date (UTC): 2018-10-31 18:15
Parent(s): 35b598ac38a3f8c378d48aaabfb266377ce1bbf3
Signing key: 99DC5E4DB05F6BE2
Tree: 49f8113ef3aea297c002500c20ebbdfd65bc9e31
File Lines added Lines deleted
src/ItemFilter.cpp 1 1
tests/ItemFilter.cpp 1 1
File src/ItemFilter.cpp changed (mode: 100644) (index 781e034..df4eba0)
... ... ItemFilter::passes(std::function<std::string(const std::string &)> accessor,
96 96 } }
97 97 continue; continue;
98 98 case Op::icnotcontain: case Op::icnotcontain:
99 if (boost::contains(val, cond.value)) {
99 if (boost::icontains(val, cond.value)) {
100 100 err(cond); err(cond);
101 101 } }
102 102 continue; continue;
File tests/ItemFilter.cpp changed (mode: 100644) (index 53646c7..a180990)
... ... TEST_CASE("Error messages add up", "[item-filter]")
37 37 Item item = Tests::makeItem("id"); Item item = Tests::makeItem("id");
38 38 item.setValue("title", "title"); item.setValue("title", "title");
39 39
40 ItemFilter filter({ "_id==notid", "title!=title", "_id!/id", "title/xy" });
40 ItemFilter filter({ "_id==notid", "title!=title", "_id!/ID", "title/xy" });
41 41
42 42 std::string error; std::string error;
43 43 auto accessor = [&item](const std::string &f) { return item.getValue(f); }; auto accessor = [&item](const std::string &f) { return item.getValue(f); };
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master