wp-api-console icon indicating copy to clipboard operation
wp-api-console copied to clipboard

wpcom/v2 endpoints do not autocomplete

Open sirbrillig opened this issue 8 years ago • 0 comments

To reproduce:

  1. Open the dev console.
  2. Change the endpoint path to wpcom/v2 (see screenshot below).
  3. Type /sites into the path field.

What I expected: to see a list of /sites endpoints.

What I saw instead: nothing happens, but there's an error in the dev console.

screen shot 2017-05-29 at 3 33 48 pm screen shot 2017-05-29 at 3 35 23 pm

I believe the line in question is this un-guarded regexp reference.

(Originally I reported this in https://github.com/Automattic/rest-api-console2/issues/26 but I think it was the wrong repo.)

sirbrillig avatar May 30 '17 14:05 sirbrillig