aswi2020vldc-gitlab/templetes/node_modules/trim-right/index.js @ 0b434236
1 |
'use strict'; |
---|---|
2 |
module.exports = function (str) { |
3 |
var tail = str.length; |
4 |
|
5 |
while (/[\s\uFEFF\u00A0]/.test(str[tail - 1])) { |
6 |
tail--; |
7 |
}
|
8 |
|
9 |
return str.slice(0, tail); |
10 |
};
|