<p></p>
<p><b>@gergelypap</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6524#discussion_r2541548620">test/helpers/browse_tags_helper_test.rb</a>:</p>
<pre style='color:#555'>>
- link = wikipedia_link("foo", "Test")
- assert_nil link
+ links = wikipedia_links("artist:wikipedia", "en:Pablo Picasso")
+ assert_equal 1, links.length
+ assert_equal "https://en.wikipedia.org/wiki/Pablo_Picasso?uselang=en", links[0][:url]
+ assert_equal "en:Pablo Picasso", links[0][:title]
+
+ links = wikipedia_links("architect:wikipedia", "en:Frank Lloyd Wright")
+ assert_equal 1, links.length
+ assert_equal "https://en.wikipedia.org/wiki/Frank_Lloyd_Wright?uselang=en", links[0][:url]
+ assert_equal "en:Frank Lloyd Wright", links[0][:title]
+
+ links = wikipedia_links("buried:wikipedia", "en:Westminster Abbey")
</pre>
<p dir="auto">You're right. This is AI generated code. However I don't think it matters much, it's just a string match.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6524#discussion_r2541548620">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLI62GRGORQLHMZBWDT35RF4FAVCNFSM6AAAAACL7TQLTWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTIOBSGEYTGNJQG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKYZJIHY4ZFH4DRAW335RF4FA5CNFSM6AAAAACL7TQLTWWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTWPRTK6G.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6524/review/3482113507</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6524#discussion_r2541548620",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6524#discussion_r2541548620",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>