documentcloud / wordpress-documentcloud

Embed DocumentCloud documents that won't be eaten by the visual editor
https://wordpress.org/plugins/documentcloud/
GNU General Public License v2.0
9 stars 14 forks source link

Recognize full Unicode range document slugs #37

Closed reefdog closed 8 years ago

reefdog commented 8 years ago

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.

reefdog commented 8 years ago

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.