string-match-left-right 9.0.17 → 9.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 9.0.19 (2024-03-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- rebase with optional chain ([f4ae8fb](https://github.com/codsen/codsen/commit/f4ae8fb0a1d4bb4b6c3c5dca979c7915d3a28cf8))
|
|
11
|
+
|
|
6
12
|
## 9.0.0 (2022-12-01)
|
|
7
13
|
|
|
8
14
|
### BREAKING CHANGES
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name string-match-left-right
|
|
3
3
|
* @fileoverview Match substrings on the left or right of a given index, ignoring whitespace
|
|
4
|
-
* @version 9.0.
|
|
4
|
+
* @version 9.0.19
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/string-match-left-right/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{arrayiffy as N}from"arrayiffy-if-string";import{isPlainObject as R,isStr as d,hasOwnProp as k}from"codsen-utils";var O="9.0.
|
|
10
|
+
import{arrayiffy as N}from"arrayiffy-if-string";import{isPlainObject as R,isStr as d,hasOwnProp as k}from"codsen-utils";var O="9.0.19";var F=O,w={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},L=t=>t+1;function A(t,s,n,a,u=!1,o=L){let l=typeof n=="function"?n():n;if(+s<0&&u&&l==="EOL")return l;let r={...w,...a};if(s>=t.length&&!u)return!1;let c=u?1:n.length,E=0,h=!1,i=!1,g=!1,b=r.maxMismatches,e=s,$=!1,f=!1,m=!1;function p(){return E===1&&b<r.maxMismatches-1}for(;t[e];){let T=o(e);if(r.trimBeforeMatching&&t[e].trim()===""){if(!t[T]&&u&&n==="EOL")return!0;e=o(e);continue}if(r&&!r.i&&r?.trimCharsBeforeMatching?.includes(t[e])||r?.i&&r.trimCharsBeforeMatching&&r.trimCharsBeforeMatching.map(D=>D.toLowerCase()).includes(t[e].toLowerCase())){if(u&&n==="EOL"&&!t[T])return!0;e=o(e);continue}let y=T>e?n[n.length-c]:n[c-1];if(!r.i&&t[e]===y||r.i&&t[e].toLowerCase()===y.toLowerCase()){if($||($=!0),g||(g=!0),c===n.length){if(f=!0,b!==r.maxMismatches)return!1}else c===1&&(m=!0);if(c-=1,E++,p())return!1;if(!c)return E!==n.length||b===r.maxMismatches||!h?e:!1}else if(!h&&!E&&(h=!0),r.maxMismatches&&b&&e){b-=1;for(let D=0;D<=b;D++){let C=T>e?n[n.length-c+1+D]:n[c-2-D],M=t[o(e)];if(C&&(!r.i&&t[e]===C||r.i&&t[e].toLowerCase()===C.toLowerCase())&&(!r.firstMustMatch||c!==n.length)){if(E++,p())return!1;c-=2,$=!0;break}else if(M&&C&&(!r.i&&M===C||r.i&&M.toLowerCase()===C.toLowerCase())&&(!r.firstMustMatch||c!==n.length)){if(!E&&!r.hungry)return!1;c-=1,$=!0;break}else if(C===void 0&&b>=0&&$&&(!r.firstMustMatch||f)&&(!r.lastMustMatch||m))return e}$||(i=e)}else return e===0&&c===1&&!r.lastMustMatch&&g?0:!1;if(i!==!1&&i!==e&&(i=!1),c<1)return e;e=o(e)}if(c>0)return u&&l==="EOL"?!0:r&&r.maxMismatches>=c&&g?i||0:!1}function V(t,s,n,a,u){if(R(u)&&k(u,"trimBeforeMatching")&&u&&typeof u.trimBeforeMatching!="boolean")throw new Error(`string-match-left-right/${t}(): [THROW_ID_09] opts.trimBeforeMatching should be boolean!${Array.isArray(u.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""}`);let o={...w,...u};if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=N(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(h=>d(h)?h:String(h)),!d(s)||!s.length)return!1;if(!Number.isInteger(n)||n<0)throw new Error(`string-match-left-right/${t}(): [THROW_ID_03] the second argument should be a natural number. Currently it's of a type: ${typeof n}, equal to:
|
|
11
11
|
${JSON.stringify(n,null,4)}`);let l,r;if(d(a))l=[a];else if(Array.isArray(a))l=a;else if(!a)l=a;else if(typeof a=="function")l=[],l.push(a);else throw new Error(`string-match-left-right/${t}(): [THROW_ID_05] the third argument, whatToMatch, is neither string nor array of strings! It's ${typeof a}, equal to:
|
|
12
12
|
${JSON.stringify(a,null,4)}`);if(u&&!R(u))throw new Error(`string-match-left-right/${t}(): [THROW_ID_06] the fourth argument, options object, should be a plain object. Currently it's of a type "${typeof u}", and equal to:
|
|
13
|
-
${JSON.stringify(u,null,4)}`);let c=0,E="";if(o?.trimCharsBeforeMatching
|
|
13
|
+
${JSON.stringify(u,null,4)}`);let c=0,E="";if(o?.trimCharsBeforeMatching?.some((h,i)=>h.length>1?(c=i,E=h,!0):!1))throw new Error(`string-match-left-right/${t}(): [THROW_ID_07] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ${c} is longer than 1 character, ${E.length} (equals to ${E}). Please split it into separate characters and put into array as separate elements.`);if(!l||!Array.isArray(l)||Array.isArray(l)&&!l.length||Array.isArray(l)&&l.length===1&&d(l[0])&&!l[0].trim()){if(typeof o.cb=="function"){let i,g=n;if((t==="matchLeftIncl"||t==="matchRight")&&(g+=1),t[5]==="L")for(let f=g;f--;){let m=s[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&m?.trim())&&(!o.trimCharsBeforeMatching?.length||m!==void 0&&!o.trimCharsBeforeMatching.includes(m))){i=f;break}}else if(t.startsWith("matchRight"))for(let f=g;f<s.length;f++){let m=s[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&m.trim())&&(!o.trimCharsBeforeMatching?.length||!o.trimCharsBeforeMatching.includes(m))){i=f;break}}if(i===void 0)return!1;let b=s[i],e=i+1,$="";return e&&e>0&&($=s.slice(0,e)),t[5]==="L"||i&&i>0&&($=s.slice(i)),o.cb(b,$,i)}let h="";throw u||(h=" More so, the whole options object, the fourth input argument, is missing!"),new Error(`string-match-left-right/${t}(): [THROW_ID_08] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!${h}`)}for(let h=0,i=l.length;h<i;h++){r=typeof l[h]=="function";let g=l[h],b,e,$="",f=n;t==="matchRight"?f+=1:t==="matchLeft"&&(f-=1);let m=A(s,f,g,o,r,p=>t[5]==="L"?p-1:p+1);if(m&&r&&typeof g=="function"&&g()==="EOL")return g()&&(!o.cb||o.cb(b,$,e))?g():!1;if(Number.isInteger(m)&&(e=t.startsWith("matchLeft")?m-1:m+1,t[5]==="L"?$=s.slice(0,m):$=s.slice(e)),e<0&&(e=void 0),s[e]&&(b=s[e]),Number.isInteger(m)&&(!o.cb||o.cb(b,$,e)))return g}return!1}function H(t,s,n,a){return V("matchLeftIncl",t,s,n,a)}function P(t,s,n,a){return V("matchLeft",t,s,n,a)}function j(t,s,n,a){return V("matchRightIncl",t,s,n,a)}function U(t,s,n,a){return V("matchRight",t,s,n,a)}export{L as defaultGetNextIdx,w as defaults,P as matchLeft,H as matchLeftIncl,U as matchRight,j as matchRightIncl,F as version};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name string-match-left-right
|
|
3
3
|
* @fileoverview Match substrings on the left or right of a given index, ignoring whitespace
|
|
4
|
-
* @version 9.0.
|
|
4
|
+
* @version 9.0.19
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/string-match-left-right/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var stringMatchLeftRight=(()=>{var
|
|
11
|
-
${JSON.stringify(s,null,4)}`);let r,t;if(
|
|
12
|
-
${JSON.stringify(u,null,4)}`);if(o&&!
|
|
13
|
-
${JSON.stringify(o,null,4)}`);let l=0,i="";if(a
|
|
10
|
+
"use strict";var stringMatchLeftRight=(()=>{var W=Object.create;var w=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols,Q=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var x=(e,n,s)=>n in e?w(e,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[n]=s,A=(e,n)=>{for(var s in n||(n={}))v.call(n,s)&&x(e,s,n[s]);if(L)for(var s of L(n))Y.call(n,s)&&x(e,s,n[s]);return e};var K=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),G=(e,n)=>{for(var s in n)w(e,s,{get:n[s],enumerable:!0})},I=(e,n,s,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of q(n))!v.call(e,o)&&o!==s&&w(e,o,{get:()=>n[o],enumerable:!(u=_(n,o))||u.enumerable});return e};var Z=(e,n,s)=>(s=e!=null?W(Q(e)):{},I(n||!e||!e.__esModule?w(s,"default",{value:e,enumerable:!0}):s,e)),z=e=>I(w({},"__esModule",{value:!0}),e);var F=K((fe,J)=>{"use strict";J.exports=X;function T(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function X(e){if(e=e||{},e.circles)return ee(e);return e.proto?u:s;function n(o,a){for(var r=Object.keys(o),t=new Array(r.length),l=0;l<r.length;l++){var i=r[l],f=o[i];typeof f!="object"||f===null?t[i]=f:f instanceof Date?t[i]=new Date(f):ArrayBuffer.isView(f)?t[i]=T(f):t[i]=a(f)}return t}function s(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,s);if(o instanceof Map)return new Map(n(Array.from(o),s));if(o instanceof Set)return new Set(n(Array.from(o),s));var a={};for(var r in o)if(Object.hasOwnProperty.call(o,r)!==!1){var t=o[r];typeof t!="object"||t===null?a[r]=t:t instanceof Date?a[r]=new Date(t):t instanceof Map?a[r]=new Map(n(Array.from(t),s)):t instanceof Set?a[r]=new Set(n(Array.from(t),s)):ArrayBuffer.isView(t)?a[r]=T(t):a[r]=s(t)}return a}function u(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,u);if(o instanceof Map)return new Map(n(Array.from(o),u));if(o instanceof Set)return new Set(n(Array.from(o),u));var a={};for(var r in o){var t=o[r];typeof t!="object"||t===null?a[r]=t:t instanceof Date?a[r]=new Date(t):t instanceof Map?a[r]=new Map(n(Array.from(t),u)):t instanceof Set?a[r]=new Set(n(Array.from(t),u)):ArrayBuffer.isView(t)?a[r]=T(t):a[r]=u(t)}return a}}function ee(e){var n=[],s=[];return e.proto?a:o;function u(r,t){for(var l=Object.keys(r),i=new Array(l.length),f=0;f<l.length;f++){var b=l[f],m=r[b];if(typeof m!="object"||m===null)i[b]=m;else if(m instanceof Date)i[b]=new Date(m);else if(ArrayBuffer.isView(m))i[b]=T(m);else{var h=n.indexOf(m);h!==-1?i[b]=s[h]:i[b]=t(m)}}return i}function o(r){if(typeof r!="object"||r===null)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return u(r,o);if(r instanceof Map)return new Map(u(Array.from(r),o));if(r instanceof Set)return new Set(u(Array.from(r),o));var t={};n.push(r),s.push(t);for(var l in r)if(Object.hasOwnProperty.call(r,l)!==!1){var i=r[l];if(typeof i!="object"||i===null)t[l]=i;else if(i instanceof Date)t[l]=new Date(i);else if(i instanceof Map)t[l]=new Map(u(Array.from(i),o));else if(i instanceof Set)t[l]=new Set(u(Array.from(i),o));else if(ArrayBuffer.isView(i))t[l]=T(i);else{var f=n.indexOf(i);f!==-1?t[l]=s[f]:t[l]=o(i)}}return n.pop(),s.pop(),t}function a(r){if(typeof r!="object"||r===null)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return u(r,a);if(r instanceof Map)return new Map(u(Array.from(r),a));if(r instanceof Set)return new Set(u(Array.from(r),a));var t={};n.push(r),s.push(t);for(var l in r){var i=r[l];if(typeof i!="object"||i===null)t[l]=i;else if(i instanceof Date)t[l]=new Date(i);else if(i instanceof Map)t[l]=new Map(u(Array.from(i),a));else if(i instanceof Set)t[l]=new Set(u(Array.from(i),a));else if(ArrayBuffer.isView(i))t[l]=T(i);else{var f=n.indexOf(i);f!==-1?t[l]=s[f]:t[l]=a(i)}}return n.pop(),s.pop(),t}}});var le={};G(le,{defaultGetNextIdx:()=>U,defaults:()=>N,matchLeft:()=>oe,matchLeftIncl:()=>se,matchRight:()=>ie,matchRightIncl:()=>ae,version:()=>ne});function j(e){return typeof e!="string"?e:e.length?[e]:[]}var k=Z(F(),1);var he=(0,k.default)();function S(e){if(e==null||typeof e!="object")return!1;let n=Object.getPrototypeOf(e);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function V(e){return typeof e=="string"}function P(e,n){return S(e)&&V(n)&&n in e}var H="9.0.19";var ne=H,N={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},U=e=>e+1;function re(e,n,s,u,o=!1,a=U){var $;let r=typeof s=="function"?s():s;if(+n<0&&o&&r==="EOL")return r;let t=A(A({},N),u);if(n>=e.length&&!o)return!1;let l=o?1:s.length,i=0,f=!1,b=!1,m=!1,h=t.maxMismatches,c=n,g=!1,y=!1,p=!1;function E(){return i===1&&h<t.maxMismatches-1}for(;e[c];){let D=a(c);if(t.trimBeforeMatching&&e[c].trim()===""){if(!e[D]&&o&&s==="EOL")return!0;c=a(c);continue}if(t&&!t.i&&(($=t==null?void 0:t.trimCharsBeforeMatching)!=null&&$.includes(e[c]))||t!=null&&t.i&&t.trimCharsBeforeMatching&&t.trimCharsBeforeMatching.map(M=>M.toLowerCase()).includes(e[c].toLowerCase())){if(o&&s==="EOL"&&!e[D])return!0;c=a(c);continue}let B=D>c?s[s.length-l]:s[l-1];if(!t.i&&e[c]===B||t.i&&e[c].toLowerCase()===B.toLowerCase()){if(g||(g=!0),m||(m=!0),l===s.length){if(y=!0,h!==t.maxMismatches)return!1}else l===1&&(p=!0);if(l-=1,i++,E())return!1;if(!l)return i!==s.length||h===t.maxMismatches||!f?c:!1}else if(!f&&!i&&(f=!0),t.maxMismatches&&h&&c){h-=1;for(let M=0;M<=h;M++){let d=D>c?s[s.length-l+1+M]:s[l-2-M],R=e[a(c)];if(d&&(!t.i&&e[c]===d||t.i&&e[c].toLowerCase()===d.toLowerCase())&&(!t.firstMustMatch||l!==s.length)){if(i++,E())return!1;l-=2,g=!0;break}else if(R&&d&&(!t.i&&R===d||t.i&&R.toLowerCase()===d.toLowerCase())&&(!t.firstMustMatch||l!==s.length)){if(!i&&!t.hungry)return!1;l-=1,g=!0;break}else if(d===void 0&&h>=0&&g&&(!t.firstMustMatch||y)&&(!t.lastMustMatch||p))return c}g||(b=c)}else return c===0&&l===1&&!t.lastMustMatch&&m?0:!1;if(b!==!1&&b!==c&&(b=!1),l<1)return c;c=a(c)}if(l>0)return o&&r==="EOL"?!0:t&&t.maxMismatches>=l&&m?b||0:!1}function O(e,n,s,u,o){var f,b,m;if(S(o)&&P(o,"trimBeforeMatching")&&o&&typeof o.trimBeforeMatching!="boolean")throw new Error(`string-match-left-right/${e}(): [THROW_ID_09] opts.trimBeforeMatching should be boolean!${Array.isArray(o.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""}`);let a=A(A({},N),o);if(typeof a.trimCharsBeforeMatching=="string"&&(a.trimCharsBeforeMatching=j(a.trimCharsBeforeMatching)),a.trimCharsBeforeMatching=a.trimCharsBeforeMatching.map(h=>V(h)?h:String(h)),!V(n)||!n.length)return!1;if(!Number.isInteger(s)||s<0)throw new Error(`string-match-left-right/${e}(): [THROW_ID_03] the second argument should be a natural number. Currently it's of a type: ${typeof s}, equal to:
|
|
11
|
+
${JSON.stringify(s,null,4)}`);let r,t;if(V(u))r=[u];else if(Array.isArray(u))r=u;else if(!u)r=u;else if(typeof u=="function")r=[],r.push(u);else throw new Error(`string-match-left-right/${e}(): [THROW_ID_05] the third argument, whatToMatch, is neither string nor array of strings! It's ${typeof u}, equal to:
|
|
12
|
+
${JSON.stringify(u,null,4)}`);if(o&&!S(o))throw new Error(`string-match-left-right/${e}(): [THROW_ID_06] the fourth argument, options object, should be a plain object. Currently it's of a type "${typeof o}", and equal to:
|
|
13
|
+
${JSON.stringify(o,null,4)}`);let l=0,i="";if((f=a==null?void 0:a.trimCharsBeforeMatching)!=null&&f.some((h,c)=>h.length>1?(l=c,i=h,!0):!1))throw new Error(`string-match-left-right/${e}(): [THROW_ID_07] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ${l} is longer than 1 character, ${i.length} (equals to ${i}). Please split it into separate characters and put into array as separate elements.`);if(!r||!Array.isArray(r)||Array.isArray(r)&&!r.length||Array.isArray(r)&&r.length===1&&V(r[0])&&!r[0].trim()){if(typeof a.cb=="function"){let c,g=s;if((e==="matchLeftIncl"||e==="matchRight")&&(g+=1),e[5]==="L")for(let C=g;C--;){let $=n[C];if((!a.trimBeforeMatching||a.trimBeforeMatching&&($!=null&&$.trim()))&&(!((b=a.trimCharsBeforeMatching)!=null&&b.length)||$!==void 0&&!a.trimCharsBeforeMatching.includes($))){c=C;break}}else if(e.startsWith("matchRight"))for(let C=g;C<n.length;C++){let $=n[C];if((!a.trimBeforeMatching||a.trimBeforeMatching&&$.trim())&&(!((m=a.trimCharsBeforeMatching)!=null&&m.length)||!a.trimCharsBeforeMatching.includes($))){c=C;break}}if(c===void 0)return!1;let y=n[c],p=c+1,E="";return p&&p>0&&(E=n.slice(0,p)),e[5]==="L"||c&&c>0&&(E=n.slice(c)),a.cb(y,E,c)}let h="";throw o||(h=" More so, the whole options object, the fourth input argument, is missing!"),new Error(`string-match-left-right/${e}(): [THROW_ID_08] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!${h}`)}for(let h=0,c=r.length;h<c;h++){t=typeof r[h]=="function";let g=r[h],y,p,E="",C=s;e==="matchRight"?C+=1:e==="matchLeft"&&(C-=1);let $=re(n,C,g,a,t,D=>e[5]==="L"?D-1:D+1);if($&&t&&typeof g=="function"&&g()==="EOL")return g()&&(!a.cb||a.cb(y,E,p))?g():!1;if(Number.isInteger($)&&(p=e.startsWith("matchLeft")?$-1:$+1,e[5]==="L"?E=n.slice(0,$):E=n.slice(p)),p<0&&(p=void 0),n[p]&&(y=n[p]),Number.isInteger($)&&(!a.cb||a.cb(y,E,p)))return g}return!1}function se(e,n,s,u){return O("matchLeftIncl",e,n,s,u)}function oe(e,n,s,u){return O("matchLeft",e,n,s,u)}function ae(e,n,s,u){return O("matchRightIncl",e,n,s,u)}function ie(e,n,s,u){return O("matchRight",e,n,s,u)}return z(le);})();
|
|
14
14
|
/**
|
|
15
15
|
* @name arrayiffy-if-string
|
|
16
16
|
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
|
|
@@ -22,7 +22,7 @@ ${JSON.stringify(o,null,4)}`);let l=0,i="";if(a!=null&&a.trimCharsBeforeMatching
|
|
|
22
22
|
/**
|
|
23
23
|
* @name codsen-utils
|
|
24
24
|
* @fileoverview Various utility functions
|
|
25
|
-
* @version 1.6.
|
|
25
|
+
* @version 1.6.4
|
|
26
26
|
* @author Roy Revelt, Codsen Ltd
|
|
27
27
|
* @license MIT
|
|
28
28
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "string-match-left-right",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.19",
|
|
4
4
|
"description": "Match substrings on the left or right of a given index, ignoring whitespace",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"left",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"arrayiffy-if-string": "^5.0.8",
|
|
72
|
-
"codsen-utils": "^1.6.
|
|
72
|
+
"codsen-utils": "^1.6.4",
|
|
73
73
|
"string-character-is-astral-surrogate": "^3.0.9"
|
|
74
74
|
}
|
|
75
75
|
}
|