❀𝓪𝓵𝓬𝓮𝓪𖤐I still don't get why<br><blockquote><br> {<br> "date": "2025-09-21T15:09:28.613Z",<br> "url": "https:\/\/alceawis.com\/notice\/AyR0IiRAkqKPtCQmWm",<br> "preview": "https:\/\/www.videogameschronicle.com\/news\/sonic-racing-crossworlds-final-dlc-racer-is-another-classic-video-game-character",<br> "mode": "html",<br> "mediaType": "text\/html",<br> "isReply": false,<br> "replyTo": null,<br> "replyLocalId": null,<br> "mentionUsed": null,<br> "visibility": "public",<br> "alceaId": 5203<br> },<br></blockquote><br>Matches both<br><a href="https://www.videogameschronicle.com/news/sonic-racing-crossworlds-final-dlc-racer-is-another-classic-video-game-character/" rel="nofollow noopener" target="_blank">https://www.videogameschronicle.com/news/sonic-racing-crossworlds-final-dlc-racer-is-another-classic-video-game-character/</a><br>And<br><a href="https://www.videogameschronicle.com/news/sonic-racing-crossworlds-is-getting-a-single-player-demo-next-week/" rel="nofollow noopener" target="_blank">https://www.videogameschronicle.com/news/sonic-racing-crossworlds-is-getting-a-single-player-demo-next-week/</a><br><br>via<br><br>---------<br>function check_social_match($article_link, $social_data) {<br> foreach ($social_data as $social_item) {<br> $preview_url = $social_item['preview'];<br> if (preg_match('/[^a-zA-Z0-9\/]$/', $preview_url)) {<br> if (strpos($article_link, $preview_url) === 0) {<br> return $social_item['url'];<br> }<br> } else {<br> $pattern = '#^' . preg_quote(rtrim($preview_url, '/'), '#') . '/?$#';<br> if (preg_match($pattern, $article_link)) {<br> return $social_item['url'];<br> }<br> if (strpos($article_link, $preview_url) === 0) {<br> return $social_item['url'];<br> }<br> }<br> }<br> return false;<br>}<br><br>---------<br>Sometimes :json: confuses me :confuseddog:<br><br>Making it more lax matches more false positives,<br>more steict and we loose some.<br><br>Sigh<br>Ohwell<br>At least <a href="http://nintendonews.eu" rel="nofollow noopener" target="_blank">nintendonews.eu</a> kinda works now..<br><br>What a drag<br><a class="hashtag" href="https://alceawis.com/tag/brokencode" rel="nofollow noopener" target="_blank">#BrokenCode</a> <a class="hashtag" href="https://alceawis.com/tag/codealcea" rel="nofollow noopener" target="_blank">#CodeAlcea</a> <a class="hashtag" href="https://alceawis.com/tag/code" rel="nofollow noopener" target="_blank">#code</a> <a class="hashtag" href="https://alceawis.com/tag/programming" rel="nofollow noopener" target="_blank">#programming</a> <a class="hashtag" href="https://alceawis.com/tag/php" rel="nofollow noopener" target="_blank">#php</a> <a class="hashtag" href="https://alceawis.com/tag/js" rel="nofollow noopener" target="_blank">#js</a><br><a class="hashtag" href="https://alceawis.com/tag/repost" rel="nofollow noopener" target="_blank">#repost</a> •acws <a class="hashtag" href="https://alceawis.com/tag/acws" rel="nofollow noopener" target="_blank">#acws</a>