add and use path_extension_is()

This commit is contained in:
Garux
2021-10-03 17:13:12 +03:00
parent a0e79e8ecd
commit b6d60fb17c
20 changed files with 50 additions and 63 deletions

View File

@@ -187,7 +187,7 @@ public:
if ( subname[0] == '/' ) {
++subname;
}
if ( m_extension[0] == '*' || extension_equal( path_get_extension( subname ), m_extension ) ) {
if ( m_extension[0] == '*' || path_extension_is( subname, m_extension ) ) {
pathlist_append_unique( m_matches, subname );
}
}