Fix foo-[abc]/[def]
not being handled correctly
#9866
Merged
foo-[abc]/[def]
not being handled correctly
#9866