Skip to content

Commit

Permalink
refactor: simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Aug 7, 2024
1 parent b0d99a4 commit 9d1b5df
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions showcases/screen-reader/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const cleanSpeakInstructions = (phraseLog: string[]): string[] =>
.split('. ')
.filter(
(sPhrase) =>
!(
sPhrase.includes('You are currently') ||
sPhrase.includes('To enter') ||
sPhrase.includes('To exit') ||
sPhrase.includes('To click') ||
sPhrase.includes('To select') ||
sPhrase.includes('To interact') ||
sPhrase.includes('Press Control')
)
![
'You are currently',
'To enter',
'To exit',
'To click',
'To select',
'To interact',
'Press Control'
].some((string) => sPhrase.includes(string))
)
.join('. ')
);
Expand Down

0 comments on commit 9d1b5df

Please sign in to comment.