Simplifies the default case in isSeparatorAtPos function by directly returning the boolean result of isEmojiImprecise(code) instead of using an if-else statement.
This improves code readability and reduces unnecessary conditional logic while maintaining the same behavior.
Changes:
- Removed verbose if-else pattern
- Direct boolean return
- Reduced cyclomatic complexity
* Add ip sort method to compare helper
* Add ip sort functionality to dhcp config panel datatable
* Add type ip to DataTableColumnData
* Change ip sorting to padStart method for better readablity
* Rename ip compare method to clarify ipv4
* Enhance IP compare method to include ipv6
* Add compare IP test
* Add entities editor
* Save entities per domain and area
* Use hidden and reorder logic in dashboard
* Add overview hidden logic
* Don't use icon for nav
* Remove overview hidden
* Change default text
* Fix icons
* Rename config properties
* Inject Intl polyfills where used
* Replace Intl polyfill in localize method with loading intl-messageformat asynchronously
* Remove spurious feature tests for Intl
* Add navigation picker for dashboards
* Rename to navigation
* Fix empty title and path
* Use hass panels instead of fetching dashboards
* Apply suggestions
* Energy dashboard tweaks and fixes
* Make headers smaller
* Change button styling in onboarding
* Disable add when no stat choosen
* Oops
* Update hui-energy-carbon-consumed-gauge-card.ts
* Update hui-energy-distribution-card.ts
* Refactor sequence matching to require an item rather than array of words to filter against
* change 'words' to 'strings'. Add tsdoc description for ScorableTextItem
* Replace type checking with 'as' to clean up code
* Replace sequence matcher with VS Code's score-based implementation
* Remove everything not related to fuzzyScore and matchSubstring
* Fix bug when filter length <= 3
* Add licensing and credit to Microsoft
* Remove unnecessary character codes
* Remove old sequence matcher, update tests, fix issue with not finding best score in list of words
* Remove unnecessary sequence precheck, refactor client api to remove array
* Fix issue with score sorting not implemented correctly and thus not actually sorting by score
* Update src/common/string/filter/sequence-matching.ts
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
* Remove unnecessary string return from fuzzy matcher. Clean up code
* Remove globals from filter. Move sorting logic into matcher
* Update function description, make score property optional.
Co-authored-by: Bram Kragten <mail@bramkragten.nl>