Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor regex match handling for hreflang and type parsing.
Replaced inline ternary operations with explicit conditional logic when extracting hreflang and type values from link metadata. This improves readability, logical clarity, and reduces potential misinterpretation of code behavior. AI Observations: The changes enhance code clarity, making it easier for future developers to understand and maintain. While the original implementation was concise, it was less readable—these updates strike a good balance between readability and functionality. Overall, a positive and necessary improvement!
- Loading branch information