mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Better Dictd dictionary name detection (Issue #237).
This commit is contained in:
parent
97ef5aa995
commit
f595b37fd0
|
@ -406,7 +406,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
|
|||
continue;
|
||||
}
|
||||
|
||||
if ( !strncmp( buf, "00databaseshort", 15 ) ) // Check for proper dictionary name
|
||||
// Check for proper dictionary name
|
||||
if ( !strncmp( buf, "00databaseshort", 15 ) || !strncmp( buf, "00-database-short", 17 ) )
|
||||
{
|
||||
char * tab1 = strchr( buf, '\t' );
|
||||
if ( tab1 )
|
||||
|
|
Loading…
Reference in a new issue