[utils] Share JSON-LD regex
This commit is contained in:
parent
e06632e3fe
commit
0685d9727b
2 changed files with 3 additions and 2 deletions
|
@ -184,6 +184,7 @@ DATE_FORMATS_MONTH_FIRST.extend([
|
|||
])
|
||||
|
||||
PACKED_CODES_RE = r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)"
|
||||
JSON_LD_RE = r'(?is)<script[^>]+type=(["\'])application/ld\+json\1[^>]*>(?P<json_ld>.+?)</script>'
|
||||
|
||||
|
||||
def preferredencoding():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue