From a033cdd760123115eb5b8ea7e76483d81e0b7960 Mon Sep 17 00:00:00 2001 From: jz Date: Tue, 4 Feb 2020 10:50:30 -0500 Subject: [PATCH] corrected docs, added another example --- lib/replaceVersion/README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/replaceVersion/README.md b/lib/replaceVersion/README.md index 4c54b34..535e843 100644 --- a/lib/replaceVersion/README.md +++ b/lib/replaceVersion/README.md @@ -5,14 +5,19 @@ Replace component version in uri #### Params * `uri` _string_ -* `version` _integer_ +* `version` _string_ -**Returns** _string|null_ +**Returns** _string_ #### Example ```js replaceVersion('nymag.com/press/_components/base/instances/foobarbaz@published', '') -//=> 'base' +//=> 'nymag.com/press/_components/base/instances/foobarbaz' + + +replaceVersion('nymag.com/press/_components/base/instances/foobarbaz', 'published') +//=> 'nymag.com/press/_components/base/instances/foobarbaz@published' + ```