This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/comdev-events-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 8d45180 Updated asf-site from main at
772cb4f21481c19fa236a294d180da7d7892d93d
8d45180 is described below
commit 8d45180753b34aca9a564b163a272f9ff322ba2b
Author: jenkins <[email protected]>
AuthorDate: Mon Jun 15 19:47:21 2026 +0000
Updated asf-site from main at 772cb4f21481c19fa236a294d180da7d7892d93d
Built from
https://ci-builds.apache.org/job/Community%20Development/job/events-site/job/main/237/
---
content/js/events-calendar.js | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/content/js/events-calendar.js b/content/js/events-calendar.js
index 0cef93f..c2f2541 100644
--- a/content/js/events-calendar.js
+++ b/content/js/events-calendar.js
@@ -38,10 +38,16 @@ $.ajax({
var link = null;
if (ev.description) {
var line1 = ev.description.split("\n")[0];
- if (line1.slice(0,7) === "http://" ||
- line1.slice(0,8) === "https://"
- ) {
- link = line1.trim();
+ // Strip HTML tags to extract bare URL
+ // Google Calendar often wraps URLs in <a href="...">...</a>
+ var hrefMatch = line1.match(/href=["']([^"']+)["']/);
+ if (hrefMatch) {
+ link = hrefMatch[1].trim();
+ } else {
+ var stripped = line1.replace(/<[^>]*>/g, '').trim();
+ if (stripped.match(/^https?:\/\//)) {
+ link = stripped;
+ }
}
}