Use Array.includes

a7e8d00145dfecd63fb055c7990c7bea443e32f5

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/instruct-mode.js+1 -1
@@ -432,7 +432,7 @@ export function formatInstructModeExamples(mesExamplesArray, name1, name2) {
432 }432 }
433433
434 const includeNames = power_user.instruct.names_behavior === names_behavior_types.ALWAYS;434 const includeNames = power_user.instruct.names_behavior === names_behavior_types.ALWAYS;
435 const includeGroupNames = selected_group && (includeNames || power_user.instruct.names_behavior === names_behavior_types.FORCE);435 const includeGroupNames = selected_group && [names_behavior_types.ALWAYS, names_behavior_types.FORCE].includes(power_user.instruct.names_behavior);
436436
437 let inputPrefix = power_user.instruct.input_sequence || '';437 let inputPrefix = power_user.instruct.input_sequence || '';
438 let outputPrefix = power_user.instruct.output_sequence || '';438 let outputPrefix = power_user.instruct.output_sequence || '';