Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Mar 3, 2024
1 parent afee483 commit 3bfdf82
Show file tree
Hide file tree
Showing 14 changed files with 86 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

[production]
node >= 20.9.0
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

# Locals

Expand Down
8 changes: 4 additions & 4 deletions .env.vault
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="7GW98NfL4hM4N6HbfeDXCKreVxKvcVPupFRnZ8XJ+pomaQ=="
DOTENV_VAULT_MAIN_VERSION=1

# dev
DOTENV_VAULT_DEV="AaLDsu+D8bResKarilpQNXjfFBAf/uorLyIQIuJinrMKCKiyX02GZXDGnfoX+GyntNyrR4Ob6zFDENhLkOZVK9BHIxnnJ5YoxEtmfg9Hp7iz6+wIOuAAx4I2scuDguGOkJpDO+QDVsw2+P080WUaYDLTHMqA5pt1u8HDxL8DfP0kFwAEHyHKy4QDBYwh5HooRy6f7MHWdMLSEyM0ePSdb4yW/hVt+kr6+Y5gNd4uCXbxCpee6NRSBl64EuKsmU/8mQ=="
DOTENV_VAULT_DEV_VERSION=383
DOTENV_VAULT_DEV="DFIBDzQdmVGRqvv28DqppQXu022vxdBGkDvbl9NZC++tSdisq+7VD71Ax0myQio9c7BRzsE3SE3Zn1FPVMELZ93QrFPjYNOt+o9jwUu3+weDUcG+mSfYzUR7buqGt2Mu/z6U36g1TvhyQ0rljH16h0ZeXwCR5f/euzjsN61dc70gFXlQzhZbQQtKPFF74pCCcF1xcBntBHY1eeJj+yM2e3NPkmw0ai80HXqtu2VE7vHC9mc/EA0x4KEuy5jKFlIb3Q=="
DOTENV_VAULT_DEV_VERSION=385

# ci
DOTENV_VAULT_CI="HaOvm9SBtl8hy8PoTNHaXL/fguJQXnupYSdzbJAQFCO8HiYk/BUa2rv/SAf7pVj+dpTcA5BEv5m2gQlYwWxPk67g6rNI+FJNnZSohfVJKxkX2o1OLAae4r8+4Q4RNAwuSU4lzlFfzbMFvtmi4yM0Xy3KVNa5KFCASZhZlWx3jg=="
DOTENV_VAULT_CI_VERSION=383
DOTENV_VAULT_CI="+9c++Uda7KN0IsDoGSmeWmf+IPyAd26M8sQ71AHRYjvpmfkZZlKcjmeoEWL0Yoh/O42fei8d066Fr2fDvTWdwBMVdIbkYH+k25qxfkVA+FZDNGorMbGSi7ZWmuUc6WxUS3POqHifcErkenWFSyeeBK15pUqI56gME2/aAMS3Wg=="
DOTENV_VAULT_CI_VERSION=385

# stage
DOTENV_VAULT_STAGE="aRP8su2YV4jZu3w1HZ/SLaots0IwJDFw75TCpvXEFeNp7tw="
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

# Default

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./settings.mjs`.
*
* Last generated using `./settings.mjs` Mar 2, 2024 11:01 PM UTC.
* Last generated using `./settings.mjs` Mar 3, 2024 4:50 AM UTC.
*/
{
"editor.formatOnType": false,
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 2, 2024 11:01 PM UTC.
# Last generated Mar 3, 2024 4:50 AM UTC.

# Locals

Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.878",
"version": "1.0.879",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities",
"description": "Utilities for JavaScript apps running in any environment.",
Expand Down
84 changes: 43 additions & 41 deletions src/str.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,49 @@ import '#@initialize.ts';
import { $dom, $env, $is, $obj, $to } from '#index.ts';
import ipRegex from 'ip-regex';

const ipV4MaxLength = 15; // Max length of an IPv4 address.
const ipV6MaxLength = 45; // Max length of an IPv6 address.

const escHTMLMap: { [x: string]: string } = {
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&apos;',
};
const unescHTMLMap: { [x: string]: string } = {
'&amp;': '&',
'&#38;': '&',
'&#038;': '&',
'&#x26;': '&',
'&#x0026;': '&',

'&lt;': '<',
'&#60;': '<',
'&#060;': '<',
'&#x3C;': '<',
'&#x003C;': '<',

'&gt;': '>',
'&#62;': '>',
'&#062;': '>',
'&#x3E;': '>',
'&#x003E;': '>',

'&quot;': '"',
'&#34;': '"',
'&#034;': '"',
'&#x22;': '"',
'&#x0022;': '"',

'&apos;': "'",
'&#39;': "'",
'&#039;': "'",
'&#x27;': "'",
'&#x0027;': "'",
};
const ipV4MaxLength = 15,
ipV6MaxLength = 45,
//
escHTMLMap: { [x: string]: string } = {
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&apos;',
},
unescHTMLMap: { [x: string]: string } = {
'&amp;': '&',
'&#38;': '&',
'&#038;': '&',
'&#x26;': '&',
'&#x0026;': '&',

'&lt;': '<',
'&#60;': '<',
'&#060;': '<',
'&#x3c;': '<',
'&#x003c;': '<',

'&gt;': '>',
'&#62;': '>',
'&#062;': '>',
'&#x3e;': '>',
'&#x003e;': '>',

'&quot;': '"',
'&#34;': '"',
'&#034;': '"',
'&#x22;': '"',
'&#x0022;': '"',

'&apos;': "'",
'&#39;': "'",
'&#039;': "'",
'&#x27;': "'",
'&#x0027;': "'",

'&nbsp;': '\u00A0',
};

// Please be cautious, this has the `g`, and therefore it has state.
const wordSplittingRegExp = /([^\p{L}\p{N}]+|(?<=\p{L})(?=\p{N})|(?<=\p{N})(?=\p{L})|(?<=[\p{Ll}\p{N}])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}\p{Ll})|(?<=[\p{L}\p{N}])(?=\p{Lu}\p{Ll}))/gu;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./tsconfig.mjs`.
*
* Last generated using `./tsconfig.mjs` Mar 2, 2024 11:01 PM UTC.
* Last generated using `./tsconfig.mjs` Mar 3, 2024 4:50 AM UTC.
*/
{
"include": ["./src/**/*", "./dev-types.d.ts"],
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# @note This entire file will be updated automatically.
# @note Instead of editing here, please review `./wrangler.mjs`.
#
# Last generated using `./wrangler.mjs` Mar 2, 2024 11:01 PM UTC.
# Last generated using `./wrangler.mjs` Mar 3, 2024 4:50 AM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 3bfdf82

Please sign in to comment.