mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 04:10:04 +02:00
update node modules
This commit is contained in:
8
node_modules/lodash/trimEnd.js
generated
vendored
8
node_modules/lodash/trimEnd.js
generated
vendored
@@ -2,10 +2,8 @@ var baseToString = require('./_baseToString'),
|
||||
castSlice = require('./_castSlice'),
|
||||
charsEndIndex = require('./_charsEndIndex'),
|
||||
stringToArray = require('./_stringToArray'),
|
||||
toString = require('./toString');
|
||||
|
||||
/** Used to match leading and trailing whitespace. */
|
||||
var reTrimEnd = /\s+$/;
|
||||
toString = require('./toString'),
|
||||
trimmedEndIndex = require('./_trimmedEndIndex');
|
||||
|
||||
/**
|
||||
* Removes trailing whitespace or specified characters from `string`.
|
||||
@@ -29,7 +27,7 @@ var reTrimEnd = /\s+$/;
|
||||
function trimEnd(string, chars, guard) {
|
||||
string = toString(string);
|
||||
if (string && (guard || chars === undefined)) {
|
||||
return string.replace(reTrimEnd, '');
|
||||
return string.slice(0, trimmedEndIndex(string) + 1);
|
||||
}
|
||||
if (!string || !(chars = baseToString(chars))) {
|
||||
return string;
|
||||
|
Reference in New Issue
Block a user