schnee effeckt und fehler Korektur

This commit is contained in:
2023-08-14 17:52:24 +02:00
parent 4a843d4936
commit 79af4e9907
6813 changed files with 343821 additions and 356128 deletions

View File

@@ -2,6 +2,6 @@
var indexOf = String.prototype.indexOf;
module.exports = function (searchString/*, position*/) {
module.exports = function (searchString /*, position*/) {
return indexOf.call(this, searchString, arguments[1]) > -1;
};

View File

@@ -6,7 +6,7 @@ var toInteger = require("../../../number/to-integer")
, min = Math.min
, max = Math.max;
module.exports = function (searchString/*, endPosition*/) {
module.exports = function (searchString /*, endPosition*/) {
var self, start, endPos;
self = String(value(this));
searchString = String(searchString);

View File

@@ -5,7 +5,7 @@ var isValue = require("../../object/is-value")
, replace = String.prototype.replace
, re = /(\r\n|[\n\r\u2028\u2029])([\u0000-\u0009\u000b-\uffff]+)/g;
module.exports = function (indent/*, count*/) {
module.exports = function (indent /*, count*/) {
var count = arguments[1];
indent = repeat.call(String(indent), isValue(count) ? count : 1);
return indent + replace.call(this, re, "$1" + indent + "$2");

View File

@@ -6,7 +6,7 @@ var toInteger = require("../../number/to-integer")
, abs = Math.abs
, max = Math.max;
module.exports = function (fill/*, length*/) {
module.exports = function (fill /*, length*/) {
var self = String(value(this)), sLength = self.length, length = arguments[1];
length = isNaN(length) ? 1 : toInteger(length);

View File

@@ -5,7 +5,7 @@ var value = require("../../../object/valid-value")
, max = Math.max
, min = Math.min;
module.exports = function (searchString/*, position*/) {
module.exports = function (searchString /*, position*/) {
var start, self = String(value(this));
start = min(max(toInteger(arguments[1]), 0), self.length);
return self.indexOf(searchString, start) === start;

View File

@@ -10,18 +10,17 @@ module.exports = function (fmap) {
var context = this;
value(context);
pattern = String(pattern);
return pattern.replace(/%([a-zA-Z]+)|\\([\u0000-\uffff])/g, function (
match,
token,
escapeChar
) {
var t, result;
if (escapeChar) return escapeChar;
t = token;
while (t && !(result = fmap[t])) t = t.slice(0, -1);
if (!result) return match;
if (isCallable(result)) result = call.call(result, context);
return result + token.slice(t.length);
});
return pattern.replace(
/%([a-zA-Z]+)|\\([\u0000-\uffff])/g,
function (match, token, escapeChar) {
var t, result;
if (escapeChar) return escapeChar;
t = token;
while (t && !(result = fmap[t])) t = t.slice(0, -1);
if (!result) return match;
if (isCallable(result)) result = call.call(result, context);
return result + token.slice(t.length);
}
);
};
};

View File

@@ -9,7 +9,7 @@
var floor = Math.floor, fromCharCode = String.fromCharCode;
// eslint-disable-next-line no-unused-vars
module.exports = function (codePoint1/*, …codePoints*/) {
module.exports = function (codePoint1 /*, …codePoints*/) {
var chars = [], length = arguments.length, i, codePoint, result = "";
for (i = 0; i < length; ++i) {
codePoint = Number(arguments[i]);

View File

@@ -4,7 +4,7 @@ var toPosInt = require("../../number/to-pos-integer")
, validValue = require("../../object/valid-value")
, reduce = Array.prototype.reduce;
module.exports = function (callSite/*, …substitutions*/) {
module.exports = function (callSite /*, …substitutions*/) {
var args, rawValue = Object(validValue(Object(validValue(callSite)).raw));
if (!toPosInt(rawValue.length)) return "";
args = arguments;