documentcloud / wordpress-documentcloud

Embed DocumentCloud documents that won't be eaten by the visual editor

Home Page:https://wordpress.org/plugins/documentcloud/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recognize full Unicode range document slugs

reefdog opened this issue · comments

Currently, the platform can create document slugs with Unicode characters, but our pattern-recognizer still only recognizes Latin alphanumerics.

Need to change 0-9a-zA-Z- to \p{L}\p{N}%-.

However! We're blocked by the platform's oEmbed endpoint, which currently chokes on them.

Meh. We should be in sync with the platform. That it won't help it work now is immaterial; when the oEmbed endpoint does work properly, it'll be nice to have the plugin already ready. Hotfixing this as v0.4.2.