I have just committed a couple of changes to my php2Bluesky library. This release includes a simple change to enable the support of international characters in hashtags and a more complex (to explain) change to the options for link cards.
International support
This was a change to the regex used in the library to identify the start and end points of hashtags. The previous code used /#(w+)/
which matches only Alphanumeric characters: [A-Za-z0-9]
and an underscore _
. This meant that hastags such as #Gütersloh failed to be recognised correctly. Now the regex is /#([\p{L}\p{N}]{1,})/
this now supports:
- Latin