# # patch "ChangeLog" # from [4bf45a1d9d2660f1f1ebff719ffaeed38c74accf] # to [da2308872f0eb7bd8bbe898a03c7d7ef47ffe7b5] # # patch "globish.cc" # from [14e10834707bb7eef6230c33f7b551a090c5f866] # to [6ae57bf040ce47674abb56f2e0c764f994d5ee62] # --- ChangeLog +++ ChangeLog @@ -1,5 +1,10 @@ 2005-07-04 Nathaniel Smith + * globish.cc (globish_matcher_test): Add check for {foo} (no + commas). + +2005-07-04 Nathaniel Smith + * globish.cc (checked_globish_to_regex): Make the special case for the empty pattern, actually work. Unit tests now pass. --- globish.cc +++ globish.cc @@ -208,6 +208,11 @@ BOOST_CHECK(m("foo")); BOOST_CHECK(m("")); } + { + globish_matcher m(utf8("{foo}"), utf8("")); + BOOST_CHECK(m("foo")); + BOOST_CHECK(!m("bar")); + } }