Sign in
apache
/
nifi-fds
/
6435e394f6c7c31d3f61a4bfc9702bde2a1659fa
/
.
/
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*$/
,
''
);
};