Sign in
apache
/
nifi-fds
/
6435e394f6c7c31d3f61a4bfc9702bde2a1659fa
/
.
/
node_modules
/
trim-right
/
index.js
blob: 666f4b2f4eeb6ae87c057f76dc1e902e803f145c [
file
] [
log
] [
blame
]
'use strict'
;
module
.
exports
=
function
(
str
)
{
var
tail
=
str
.
length
;
while
(
/[\s\uFEFF\u00A0]/
.
test
(
str
[
tail
-
1
]))
{
tail
--;
}
return
str
.
slice
(
0
,
tail
);
};