aboutsummaryrefslogtreecommitdiff
path: root/paludis/name.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/name.cc')
-rw-r--r--paludis/name.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/name.cc b/paludis/name.cc
index f3f936d14..1aaa50ef2 100644
--- a/paludis/name.cc
+++ b/paludis/name.cc
@@ -388,6 +388,13 @@ SetNameValidator::validate(const std::string & s)
if (s.empty())
break;
+ if (s.length() > 1 && '*' == s[s.length() - 1] && '*' != s[s.length() - 2])
+ {
+ Context c("When validating set name '" + s + "':");
+ validate(s.substr(0, s.length() - 1));
+ return;
+ }
+
if ('-' == s[0] || '.' == s[0])
break;