mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Fixed issue with wildcards at the start of a string
This commit is contained in:
		@@ -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, "*" ) ) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user