This commit is contained in:
shenleban tongying 2024-11-20 05:02:04 -05:00
parent d4d3e443b1
commit 0999f386d2

View file

@ -1735,12 +1735,10 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
// Make sure it's not an abbreviation file. extSize of ".dsl" or ".dsl.dz" // Make sure it's not an abbreviation file. extSize of ".dsl" or ".dsl.dz"
int extSize = ( uncompressedDsl ? 4 : 7 ); int extSize = ( uncompressedDsl ? 4 : 7 );
if ( fileName.size() >= ( 5 + extSize ) ) { if ( (fileName.size() >= ( 5 + extSize )) && QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive )) {
if ( QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive ) ) {
// It is, skip it // It is, skip it
continue; continue;
} }
}
unsigned atLine = 0; // Indicates current line in .dsl, for debug purposes unsigned atLine = 0; // Indicates current line in .dsl, for debug purposes