diff options
| author | Phil Nash | 2014-05-19 18:07:53 +0100 |
|---|---|---|
| committer | Phil Nash | 2014-05-19 18:07:53 +0100 |
| commit | fcf0deb116125a0b314cb52f461339a3ed30ec2b (patch) | |
| tree | de364e714b3e976cc8ca66e76851053e3d846fb6 /include | |
| parent | b5d1cfe441c2d8a7b164bf7aa848d89611d39be3 (diff) | |
| download | catch3-fcf0deb116125a0b314cb52f461339a3ed30ec2b.tar.gz | |
Fixed issue with wildcards at the start of a string
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_test_spec.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_test_spec.hpp b/include/internal/catch_test_spec.hpp index dde6f207..268ed808 100644 --- a/include/internal/catch_test_spec.hpp +++ b/include/internal/catch_test_spec.hpp @@ -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, "*" ) ) { |