Sign in
apache
/
incubator-marvin
/
562c94ed9723fa8b5f2c33ad9615469214ec0690
/
.
/
PoCs
/
nodejs_poc
/
node_modules
/
trim
/
index.js
blob: 640c24cf302e60081b247e113907c79a4dc3db83 [
file
] [
log
] [
blame
]
exports
=
module
.
exports
=
trim
;
function
trim
(
str
){
return
str
.
replace
(
/^\s*|\s*$/
g
,
''
);
}
exports
.
left
=
function
(
str
){
return
str
.
replace
(
/^\s*/
,
''
);
};
exports
.
right
=
function
(
str
){
return
str
.
replace
(
/\s*$/
,
''
);
};