mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
14 lines
249 B
JavaScript
14 lines
249 B
JavaScript
'use strict';
|
|
|
|
module.exports = (value) => {
|
|
if (typeof value !== 'string')
|
|
return '';
|
|
|
|
if (value.length === 1)
|
|
return '';
|
|
|
|
if (value && !value.includes('/'))
|
|
return `/${value}`;
|
|
|
|
return value;
|
|
};
|