mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 08:38:30 -07:00
Merge branch 'main' into ics
This commit is contained in:
commit
006f95b49a
1 file changed
+3
@@ -192,6 +192,9 @@ async function getDetailsFromEventURL(url: URL) {
|
|||||||
// Deentitize HTML entities
|
// Deentitize HTML entities
|
||||||
[name, location] = [decode(name), decode(location)];
|
[name, location] = [decode(name), decode(location)];
|
||||||
|
|
||||||
|
// Strip Crypto.com branding from event name
|
||||||
|
name = name.replace("Crypto.com", "").trim();
|
||||||
|
|
||||||
if (!name || !date) {
|
if (!name || !date) {
|
||||||
throw new Error("Failed to retrieve event details");
|
throw new Error("Failed to retrieve event details");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user