aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/choice.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/choice.cc b/paludis/choice.cc
index 2ed0d8680..460487237 100644
--- a/paludis/choice.cc
+++ b/paludis/choice.cc
@@ -75,7 +75,7 @@ WrappedValueTraits<ChoicePrefixNameTag>::validate(const std::string & s)
if (s[0] >= 'A' && s[0] <= 'Z')
return false;
- if (std::string::npos != s.find(" \t\r\n()"))
+ if (std::string::npos != s.find(" \t\r\n()#"))
return false;
}
@@ -108,7 +108,7 @@ WrappedValueTraits<ChoiceNameWithPrefixTag>::validate(const std::string & s)
return false;
};
- if (std::string::npos != s.find(" \t\r\n()"))
+ if (std::string::npos != s.find(" \t\r\n()#"))
return false;
return true;
@@ -142,7 +142,7 @@ WrappedValueTraits<UnprefixedChoiceNameTag>::validate(const std::string & s)
break;
};
- if (std::string::npos != s.find(" \t\r\n()"))
+ if (std::string::npos != s.find(" \t\r\n()#"))
return false;
return true;