mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 04:40:05 +02:00
update node modules
This commit is contained in:
6
node_modules/lodash/trim.js
generated
vendored
6
node_modules/lodash/trim.js
generated
vendored
@@ -1,13 +1,11 @@
|
||||
var baseToString = require('./_baseToString'),
|
||||
baseTrim = require('./_baseTrim'),
|
||||
castSlice = require('./_castSlice'),
|
||||
charsEndIndex = require('./_charsEndIndex'),
|
||||
charsStartIndex = require('./_charsStartIndex'),
|
||||
stringToArray = require('./_stringToArray'),
|
||||
toString = require('./toString');
|
||||
|
||||
/** Used to match leading and trailing whitespace. */
|
||||
var reTrim = /^\s+|\s+$/g;
|
||||
|
||||
/**
|
||||
* Removes leading and trailing whitespace or specified characters from `string`.
|
||||
*
|
||||
@@ -33,7 +31,7 @@ var reTrim = /^\s+|\s+$/g;
|
||||
function trim(string, chars, guard) {
|
||||
string = toString(string);
|
||||
if (string && (guard || chars === undefined)) {
|
||||
return string.replace(reTrim, '');
|
||||
return baseTrim(string);
|
||||
}
|
||||
if (!string || !(chars = baseToString(chars))) {
|
||||
return string;
|
||||
|
Reference in New Issue
Block a user