You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: layouts/events/single.html
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -77,26 +77,33 @@ <h2>{{ $eventDate }}</h2>
77
77
{{ $event.where }}
78
78
{{- end }}
79
79
</p>
80
-
80
+
81
81
{{- $description := $event.desc | safeHTML -}}
82
82
83
-
{{- $matches := findRESubmatch `[<br>]+For full details, including the address, and to RSVP see: <ahref="([^"]+)"[^>]*>[^<]+</a>` $description -}}
83
+
{{/* Match and extract the event ID from the RSVP section */}}
84
+
{{- $regex := `(?s)(<br\s*/?>)*\s*For full details, including the address, and to RSVP see:(?:.*)(?:<a[^>]*href=")?https://www\.meetup\.com/st-louis-game-developers/events/([0-9]+)/?(?:".*?>.*?</a>)?` -}}
{{- $matches := findRESubmatch `[<br>]+For full details, including the address, and to RSVP see: <ahref="([^"]+)"[^>]*>[^<]+</a>` $description -}}
46
+
{{/* Match and extract the event ID from the RSVP section */}}
47
+
{{- $regex := `(?s)(<br\s*/?>)*\s*For full details, including the address, and to RSVP see:(?:.*)(?:<a[^>]*href=")?https://www\.meetup\.com/st-louis-game-developers/events/([0-9]+)/?(?:".*?>.*?</a>)?` -}}
0 commit comments