Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(linter): Use parsed patterns in `unicorn/prefer-string-start…
…s-ends-with` (#5949) - part of #5416 This change enhances the accuracy of the `prefer_string_starts_ends_with` rule by using the parsed regex patterns for analysis. It allows for more precise detection of patterns that can be replaced with `startsWith()` and `endsWith()` methods, reducing false positives and improving the overall effectiveness of the linter. ### What changed? - Replaced the simple string-based regex analysis with a more robust AST-based approach. - Removed the `is_simple_string` function as it's no longer needed.
- Loading branch information