Skip to content

Commit d1a012a

Browse files
committed
fix url regex
1 parent a7acbb5 commit d1a012a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

gameyamlspiderandgenerator/util/fgi.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fgi_dict = [
22
{
3-
"match": r"^https://www.youtube.com/(?!watch\?v=)(?!channel/)(@?.+)",
3+
"match": "^https://www\.youtube\.com/(?!watch\?v=)(?!channel/)(@?[^/]+)/?$",
44
"prefix": ".youtube",
55
"replace": "youtube:@\\g<1>",
66
},
@@ -14,6 +14,11 @@
1414
"prefix": ".twitter",
1515
"replace": "twitter:\\g<1>",
1616
},
17+
{
18+
"match": "^https://x.com/([A-Za-z0-9_]+).*",
19+
"prefix": ".twitter",
20+
"replace": "twitter:\\g<1>",
21+
},
1722
{
1823
"match": "^https://www.patreon.com/(.+)",
1924
"prefix": ".patreon",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "gameyamlspiderandgenerator"
3-
version = "2.1.2rc"
3+
version = "2.1.2"
44
description = "A useful tool for generating FurryGameIndex yaml files"
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)