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