diff --git a/glob/CMakeLists.txt b/glob/CMakeLists.txt index 8b30387..a239d91 100644 --- a/glob/CMakeLists.txt +++ b/glob/CMakeLists.txt @@ -125,6 +125,11 @@ new_ec_test(braces_word_choice2 braces.in test.js "^choice=true[ \t\n\r]*$") new_ec_test(braces_word_choice3 braces.in test.html "^choice=true[ \t\n\r]*$") new_ec_test(braces_word_choice4 braces.in test.pyc "^[ \t\n\r]*$") +# word choice with spaces +new_ec_test(braces_word_choice5 braces.in test.pl "^choice=spaces[ \t\n\r]*$") +new_ec_test(braces_word_choice6 braces.in test.txt "^choice=spaces[ \t\n\r]*$") +new_ec_test(braces_word_choice7 braces.in test.htm "^choice=spaces[ \t\n\r]*$") + # single choice new_ec_test(braces_single_choice braces.in {single}.b "^choice=single[ \t\n\r]*$") new_ec_test(braces_single_choice_negative braces.in .b "^[ \t\n\r]*$") diff --git a/glob/braces.in b/glob/braces.in index 0400aeb..edf9e4a 100644 --- a/glob/braces.in +++ b/glob/braces.in @@ -6,6 +6,10 @@ root=true [*.{py,js,html}] choice=true +; word choice with spaces +[*.{pl, txt, htm}] +choice=spaces + ; single choice [{single}.b] choice=single