Skip to content

Commit

Permalink
scrapers/twitter: support x.com (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdashlw authored Mar 23, 2024
1 parent 3395cd1 commit 2dae911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/philomena/scrapers/twitter.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Philomena.Scrapers.Twitter do
@url_regex ~r|\Ahttps?://(?:mobile\.)?twitter.com/([A-Za-z\d_]+)/status/([\d]+)/?|
@url_regex ~r|\Ahttps?://(?:mobile\.)?(?:twitter\|x).com/([A-Za-z\d_]+)/status/([\d]+)/?|

@spec can_handle?(URI.t(), String.t()) :: true | false
def can_handle?(_uri, url) do
Expand Down

0 comments on commit 2dae911

Please sign in to comment.