Files
snek/src
retoor 326bcdd6cc feat: fix operator precedence in youtube link detection by grouping or conditions
The diff corrects a logical bug in `embed_youtube` within `src/snek/system/template.py` where the `and` operator had higher precedence than `or`, causing the condition to match links starting with "https://www.you" only when `v=` was present, but also matching any link with `si=` regardless of domain. By wrapping the two `or` conditions in parentheses, the fix ensures both `v=` and `si=` parameters are only checked against youtube links.
2025-04-09 09:03:39 +00:00
..