Skip to content

Commit

Permalink
support optional trailing slash on ballot URL (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfabulich authored Oct 16, 2024
1 parent 8a4f859 commit 98b491d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IFComp/script/populate_ifdb_ids.pl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ sub entry_for_tuid {
# Find the link whose URL looks like a ballot link, containing an IFComp entry ID
foreach my $link (@links) {
my $url = @{ $link->getElementsByTagName("url") }[0]->textContent;
if ( $url =~ /^https:\/\/ifcomp.org\/ballot\/#entry-(\d+)$/ ) {
if ( $url =~ /^https:\/\/ifcomp.org\/ballot\/?#entry-(\d+)$/ ) {
my $entry_id = $1;
print "entry_id $entry_id => $tuid\n";
return $1;
Expand Down

0 comments on commit 98b491d

Please sign in to comment.