Skip to content

Commit

Permalink
remove repeated declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Feb 8, 2024
1 parent d994eef commit b42dc73
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions hawc/apps/common/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,10 @@
from pydantic import BaseModel
from pydantic import ValidationError as PydanticValidationError

from .clean.sanitize_html import valid_html_tags

tag_regex = re.compile(r"</?(?P<tag>\w+)[^>]*>")
hyperlink_regex = re.compile(r"href\s*=\s*['\"](.*?)['\"]")


valid_html_tags = {
"a",
"blockquote",
"br",
"div",
"em",
"h1",
"h2",
"h3",
"h4",
"h5",
"li",
"mark",
"ol",
"p",
"span",
"strong",
"sub",
"sup",
"s",
"ul",
"u",
}
valid_scheme = {"", "http", "https"}
valid_netloc_endings = {
"canada.ca",
Expand Down

0 comments on commit b42dc73

Please sign in to comment.