1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-31 18:31:01 +00:00

Add missing regex anchor detected by CodeQL

This commit is contained in:
Frédéric Guillot 2024-02-28 20:29:06 -08:00
parent b2ce98da87
commit c493f8921e
4 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ import (
)
var (
youtubeEmbedRegex = regexp.MustCompile(`//www\.youtube\.com/embed/(.*)`)
youtubeEmbedRegex = regexp.MustCompile(`//www\.youtube\.com/embed/(.*)$`)
tagAllowList = map[string][]string{
"a": {"href", "title", "id"},
"abbr": {"title"},