Skip to content

Commit

Permalink
Merge pull request #78423 from Brambor/filter-lcmatch
Browse files Browse the repository at this point in the history
lcmatch instead of wildcard_match for (by)product filter `r:`
  • Loading branch information
Night-Pryanik authored Dec 12, 2024
2 parents 3314aa8 + 5cbe014 commit cbac73c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crafting_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ static recipe_subset filter_recipes( const recipe_subset &available_recipes,
case 'r': {
recipe_subset result;
for( const itype *e : item_controller->all() ) {
if( wildcard_match( e->nname( 1 ), qry_filter_str.substr( 2 ) ) ) {
if( lcmatch( e->nname( 1 ), qry_filter_str.substr( 2 ) ) ) {
result.include( recipe_subset( available_recipes,
available_recipes.recipes_that_produce( e->get_id() ) ) );
}
Expand Down Expand Up @@ -1093,7 +1093,7 @@ static const std::vector<SearchPrefix> prefixes = {
{ 'm', to_translation( "yes" ), to_translation( "recipe <color_cyan>memorized</color> (or not)" ) },
{ 'P', to_translation( "Blacksmithing" ), to_translation( "<color_cyan>proficiency</color> used to craft" ) },
{ 'l', to_translation( "5" ), to_translation( "<color_cyan>difficulty</color> of the recipe as a number or range" ) },
{ 'r', to_translation( "buttermilk" ), to_translation( "recipe's (<color_cyan>by</color>)<color_cyan>products</color>; use * as wildcard" ) },
{ 'r', to_translation( "buttermilk" ), to_translation( "recipe's (<color_cyan>by</color>)<color_cyan>products</color>" ) },
{ 'L', to_translation( "122 cm" ), to_translation( "result can contain item of <color_cyan>length</color>" ) },
{ 'V', to_translation( "450 ml" ), to_translation( "result can contain item of <color_cyan>volume</color>" ) },
{ 'M', to_translation( "250 kg" ), to_translation( "result can contain item of <color_cyan>mass</color>" ) },
Expand Down

0 comments on commit cbac73c

Please sign in to comment.