Skip to content

Conversation

@frederickcxa
Copy link
Contributor

@frederickcxa frederickcxa commented May 2, 2018

Feature

isPublished

Check if '@published' is in the uri

Params

  • uri string

Returns boolean

Example

isPublished('nymag.com/press/_components/base/instances/foobarbaz@published')
//=> true

isPublished('nymag.com/press/_components/base/instances/foobarbaz')
//=> false
 

@coveralls
Copy link

coveralls commented May 2, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 788bdf1 on frederickcxa:add-ispublished-function into 7dfef0e on clay:master.

@nelsonpecora nelsonpecora merged commit 973e110 into clay:master May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants