UNPKG

@aws/pdk

Version:

All documentation is located at: https://aws.github.io/aws-pdk

13 lines (11 loc) 295 B
'use strict' module.exports = function (registry) { if (typeof registry !== 'string') { throw new TypeError('`registry` should be a string') } if ( registry.endsWith('/') || registry.indexOf('/', registry.indexOf('//') + 2) != -1 ) return registry return `${registry}/` }