Add RegEx class. Refactor PatternMatcher.

This commit is contained in:
Martín Lucas Golini
2024-09-21 22:29:23 -03:00
parent 329eb793a5
commit 04e5cd5fb6
21 changed files with 573 additions and 323 deletions

View File

@@ -496,7 +496,7 @@ FormatterPlugin::Formatter FormatterPlugin::supportsFormatter( std::shared_ptr<T
for ( const auto& formatter : mFormatters ) {
for ( const auto& ext : formatter.files ) {
if ( LuaPattern::matches( fileName, ext ) )
if ( LuaPattern::hasMatches( fileName, ext ) )
return formatter;
auto& files = def.getFiles();
if ( std::find( files.begin(), files.end(), ext ) != files.end() )