Fixed issue with wildcards at the start of a string

This commit is contained in:
Phil Nash committed 2014-05-19 18:07:53 +01:00
1 parent b5d1cfe441
commit fcf0deb116
2 files changed
+27 -1

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ namespace Catch {
public:
NamePattern( std::string const& name ) : m_name( toLower( name ) ), m_wildcard( NoWildcard ) {
if( startsWith( m_name, "*" ) ) {
m_name = name.substr( 1 );
m_name = m_name.substr( 1 );
m_wildcard = WildcardAtStart;
}
if( endsWith( m_name, "*" ) ) {