Sign in
cobalt
/
cobalt
/
4db9f13a160f367210321ab353f1fd251699bffb
/
.
/
third_party
/
devtools
/
node_modules
/
trim-newlines
/
index.js
blob: da31efd687f7d9524854313cbbf487efe68e2187 [
file
] [
log
] [
blame
]
'use strict'
;
var
fn
=
module
.
exports
=
function
(
x
)
{
return
fn
.
end
(
fn
.
start
(
x
));
};
fn
.
start
=
function
(
x
)
{
return
x
.
replace
(
/^[\r\n]+/
,
''
);
};
fn
.
end
=
function
(
x
)
{
return
x
.
replace
(
/[\r\n]+$/
,
''
);
};