[wp-trac] [WordPress Trac] #34729: Use short CURIEs instead of full URIs
WordPress Trac
noreply at wordpress.org
Thu Feb 25 01:23:27 UTC 2016
#34729: Use short CURIEs instead of full URIs
----------------------------+-----------------------
Reporter: rmccue | Owner: joehoyle
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 4.5
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+-----------------------
Comment (by rmccue):
Replying to [comment:17 danielbachhuber]:
> The regex doesn't handle `https://api.w.org/post_type`
>
> https://github.com/WP-API/WP-
API/commit/ede21aa1ccea94ff8e4f8c30b23cae741e9cf776 is one approach, but
I'm not sure if `https://api.w.org/?foo` would be considered a valid curie
and need to be handled too
This should just be `.+` I think; `https://example.com/a/b?c#d` is valid.
We should also be anchoring to the start/end of the string though, I
think.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34729#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list