Added StringHelpers, UniqIdGenerators and UrlParser test

UniqIdGenerators skips window.crypt test

URL tests need to be more in detail
This commit is contained in:
2025-03-07 19:01:58 +09:00
parent ea9882256e
commit 233fb6a235
8 changed files with 118 additions and 32 deletions

View File

@@ -8,7 +8,7 @@ export { formatString, numberWithCommas, convertLBtoBR };
/**
* simple sprintf formater for replace
* usage: "{0} is cool, {1} is not".format("Alpha", "Beta");
* usage: formatString("{0} is cool, {1} is not", "Alpha", "Beta");
* First, checks if it isn't implemented yet.
* @param {String} string String with {..} entries
* @param {...any} args List of replacement

View File

@@ -25,7 +25,7 @@ function generateId(len)
}
/**
* creates a pseudo random string of 10 characters
* creates a pseudo random string of 11 characters
* works on all browsers
* after many runs it will create duplicates
* @return {String} not true random string