mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
chore(prefixer) rm iife
This commit is contained in:
parent
335af65709
commit
af753bba8a
1 changed files with 10 additions and 12 deletions
|
|
@ -1,13 +1,11 @@
|
|||
(function() {
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
module.exports = function(value) {
|
||||
if (typeof value === 'string')
|
||||
if (value && !~value.indexOf('/'))
|
||||
value = '/' + value;
|
||||
else if (value.length === 1)
|
||||
value = '';
|
||||
|
||||
module.exports = function(value) {
|
||||
if (typeof value === 'string')
|
||||
if (value && !~value.indexOf('/'))
|
||||
value = '/' + value;
|
||||
else if (value.length === 1)
|
||||
value = '';
|
||||
|
||||
return value;
|
||||
};
|
||||
})();
|
||||
return value;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue