Sign in
cobalt
/
cobalt
/
c52866be1febb1c09c04df4cb93d87f3595f4dc1
/
.
/
src
/
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]+$/
,
''
);
};