1
0

Compare commits

..

No commits in common. "a45308532e9ea2f09b211faf5ca3fdc920e46171" and "c7a5b3eae151b2393f699b74e0c8e5ba55cf7a39" have entirely different histories.

4 changed files with 5 additions and 13 deletions

View File

@ -1,8 +1,4 @@
<!--- WARNING ---!>
<!--- THIS IS AN AUTO-GENERATED FILE ---!>
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN ---!>
# Socials-util.
# Socials-util
Python library for parsing and processing URLs of Social Media Sites.

View File

@ -1,9 +1,4 @@
"""# Socials-util.
Python library for parsing and processing URLs of Social Media Sites.
Used by one-page-internet.
"""
"""Small utility for detecting social websites."""
import re
import urllib.parse
@ -444,7 +439,7 @@ def determine_social_from_url_internally(
# Regexes
for social_site_url_regex, social_site_id in REGEXES:
if m := re.fullmatch(social_site_url_regex, url, re.IGNORECASE):
if m := re.fullmatch(social_site_url_regex, url, re.I):
groups = m.groups()
username_or_id = groups[0] if len(groups) > 0 else None
if username_or_id in DISALLOWED_IDENTIFIERS:

View File

@ -1 +1 @@
__version__ = '0.1.13'
__version__ = '0.1.12'

View File

@ -178,6 +178,7 @@ PARSABLE_SOCIAL_IDS_COMBINED: list[tuple[str, object, str]] = [
'solquiet',
),
('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT, 'solquiet'),
# Cara
('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'),
('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'),