Skip to content

Commit

Permalink
Remove unnecessary length-check
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Nov 5, 2024
1 parent 618c324 commit 5a37258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goals/ReviewEntries/ReviewEntriesTable/filterFn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { fuzzySearch } = require("levenshtein-search");
/** Checks if string starts and ends with quote marks.
* For simplicity, allows mismatched quote types. */
export function isQuoted(filter: string): boolean {
return filter.length > 2 && /^["'\p{Pi}].*["'\p{Pf}]$/u.test(filter);
return /^["'\p{Pi}].*["'\p{Pf}]$/u.test(filter);
}

/** Checks if value contains a substring that fuzzy-matches the filter. */
Expand Down

0 comments on commit 5a37258

Please sign in to comment.