summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/rtrim.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/rtrim.js')
-rw-r--r--node_modules/locutus/php/strings/rtrim.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/locutus/php/strings/rtrim.js b/node_modules/locutus/php/strings/rtrim.js
deleted file mode 100644
index d781b5b..0000000
--- a/node_modules/locutus/php/strings/rtrim.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-module.exports = function rtrim(str, charlist) {
- // discuss at: http://locutus.io/php/rtrim/
- // original by: Kevin van Zonneveld (http://kvz.io)
- // input by: Erkekjetter
- // input by: rem
- // improved by: Kevin van Zonneveld (http://kvz.io)
- // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)
- // bugfixed by: Brett Zamir (http://brett-zamir.me)
- // example 1: rtrim(' Kevin van Zonneveld ')
- // returns 1: ' Kevin van Zonneveld'
-
- charlist = !charlist ? ' \\s\xA0' : (charlist + '').replace(/([[\]().?/*{}+$^:])/g, '\\$1');
-
- var re = new RegExp('[' + charlist + ']+$', 'g');
-
- return (str + '').replace(re, '');
-};
-//# sourceMappingURL=rtrim.js.map \ No newline at end of file