is-html-tag-opening 4.2.0 → 4.2.1

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.
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @name is-html-tag-opening
3
3
  * @fileoverview Does an HTML tag start at given position?
4
- * @version 4.2.0
4
+ * @version 4.2.1
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/is-html-tag-opening/}
8
8
  */
9
9
 
10
- import{formatDiagnosticValue as h}from"codsen-utils";import{left as c}from"string-left-right";import{matchRight as q,matchRightIncl as F}from"string-match-left-right";var d="4.2.0";import{left as j}from"string-left-right";function p(e,t){return e[t]==="<"||e[j(e,t)]==="<"}function b(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var f={allowCustomTagNames:!1,skipOpeningBracket:!1},m="\\",g=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var W=d;function P(e,t=0,k){if(typeof e!="string")throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "${typeof e}", value being ${h(e,4)}`);if(!Number.isInteger(t)||t<0)throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "${typeof t}", value being ${h(t,4)}`);let n={...f,...k},i="[\\\\ \\t\\r\\n/]*",r="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",w=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+${i}\\/?${i}>`,"g"),E=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*${i}>`,"g"),y=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['"\\w]`,"g"),D=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+[${r}]+[-${r}]*(?:-\\w+)?\\s*=\\s*['"\\w]`),O=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*\\w+\\s*\\/?\\s*>`,"g"),v=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*[${r}]+[-${r}]*\\s*\\/?\\s*>`,"g"),R=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),V=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*\\s+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),$=new RegExp(`^<${n.skipOpeningBracket?"?\\/?":""}(${i}[${r}]+)+${i}[\\\\/=>]`,""),B=/^\/\s*\w+s*>/,s=t?e.slice(t):e,a=c(e,t),l=!1,o=!1,C={cb:b,i:!0,trimCharsBeforeMatching:["/",m,"!"," "," ",`
10
+ import{formatDiagnosticValue as h}from"codsen-utils";import{left as c}from"string-left-right";import{matchRight as q,matchRightIncl as F}from"string-match-left-right";var d="4.2.1";import{left as j}from"string-left-right";function p(e,t){return e[t]==="<"||e[j(e,t)]==="<"}function b(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var f={allowCustomTagNames:!1,skipOpeningBracket:!1},m="\\",g=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var W=d;function P(e,t=0,k){if(typeof e!="string")throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "${typeof e}", value being ${h(e,4)}`);if(!Number.isInteger(t)||t<0)throw new Error(`is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "${typeof t}", value being ${h(t,4)}`);let n={...f,...k},i="[\\\\ \\t\\r\\n/]*",r="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",w=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+${i}\\/?${i}>`,"g"),E=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*${i}>`,"g"),y=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['"\\w]`,"g"),D=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+[${r}]+[-${r}]*(?:-\\w+)?\\s*=\\s*['"\\w]`),O=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*\\w+\\s*\\/?\\s*>`,"g"),v=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*[${r}]+[-${r}]*\\s*\\/?\\s*>`,"g"),R=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),V=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*\\s+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),$=new RegExp(`^<${n.skipOpeningBracket?"?\\/?":""}(${i}[${r}]+)+${i}[\\\\/=>]`,""),B=/^\/\s*\w+s*>/,s=t?e.slice(t):e,a=c(e,t),l=!1,o=!1,C={cb:b,i:!0,trimCharsBeforeMatching:["/",m,"!"," "," ",`
11
11
  `,"\r"]};return n.allowCustomTagNames?((n.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[c(e,a)]==="<")||s[0]==="<"&&s[1]?.trim())&&($.test(s)||/^<\w+$/.test(s))||E.test(s)&&p(e,t)||D.test(s)||v.test(s)&&p(e,t)||V.test(s)||e[t]==="/"&&e[a]!=="<"&&B.test(s))&&(o=!0):(((n.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[c(e,a)]==="<")||(s[0]==="<"||s[0]==="/"&&(!e[a]||e[a]!=="<"))&&s[1]?.trim())&&$.test(s)||w.test(s)&&p(e,t)||y.test(s)||O.test(s)&&p(e,t)||R.test(s))&&(l=!0),l&&F(e,t,g,{cb:u=>u===void 0?((e[t]==="<"&&e[t+1]?.trim()||e[t-1]==="<")&&(o=!0),!0):u.toUpperCase()===u.toLowerCase()&&!/\d/.test(u)&&u!=="=",i:!0,trimCharsBeforeMatching:["<","/",m,"!"," "," ",`
12
12
  `,"\r"]})&&(o=!0)),!o&&e[t]==="<"&&e[t+1]?.trim()&&q(e,t,g,C)&&(o=!0),typeof e=="string"&&t<e.length&&o}export{f as defaults,P as isOpening,W as version};
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @name is-html-tag-opening
3
3
  * @fileoverview Does an HTML tag start at given position?
4
- * @version 4.2.0
4
+ * @version 4.2.1
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/is-html-tag-opening/}
8
8
  */
9
9
 
10
- "use strict";var isHtmlTagOpening=(()=>{var B=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var _=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))F.call(t,r)&&_(e,r,t[r]);if(V)for(var r of V(t))ee.call(t,r)&&_(e,r,t[r]);return e};var te=(e,t)=>{for(var r in t)B(e,r,{get:t[r],enumerable:!0})},re=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of X(t))!F.call(e,s)&&s!==r&&B(e,s,{get:()=>t[s],enumerable:!(i=Y(t,s))||i.enumerable});return e};var ne=e=>re(B({},"__esModule",{value:!0}),e);var ge={};te(ge,{defaults:()=>N,isOpening:()=>he,version:()=>pe});function ie(){let e=[],t=0,r=!1;return{append(i){return r?!1:t+i.length>1999?(e.push("\u2026"),t+=1,r=!0,!1):(e.push(i),t+=i.length,!0)},result(){return e.join("")},stopped(){return r}}}function se(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function L(e,t){if(e.append('"')){for(let r=0;r<t.length&&!e.stopped();r+=1){let i=t.charCodeAt(r);i===34?e.append('\\"'):i===92?e.append("\\\\"):i===8?e.append("\\b"):i===9?e.append("\\t"):i===10?e.append("\\n"):i===12?e.append("\\f"):i===13?e.append("\\r"):i<32||i===8232||i===8233||i>=55296&&i<=57343?e.append(se(i)):e.append(t[r])}e.append('"')}}function oe(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function P(e,t){e.append("Symbol(");let r=String(t);r.length>8&&L(e,r.slice(7,-1)),e.append(")")}function H(e,t){typeof t=="symbol"?P(e,t):L(e,String(t))}function O(e,t=0){let r=ie(),i=t===4?4:0,s=new WeakSet,o=0;function m(n){i&&r.append(" ".repeat(n*i))}function l(n,a){n&&r.append(","),i&&(r.append("\n"),m(a+1))}function d(n,a,u){i&&a&&(r.append("\n"),m(u)),r.append(n)}function b(n,a){Object.prototype.hasOwnProperty.call(n,"value")?h(n.value,a):r.append(oe(n))}function $(n,a){let u;try{u=Reflect.getOwnPropertyDescriptor(n,"length")}catch(f){r.append("[Uninspectable]");return}let c=u==null?void 0:u.value;if(!Number.isSafeInteger(c)||c<0){r.append("[Uninspectable]");return}r.append("[");let g=!1;for(let f=0;f<c&&!r.stopped();f+=1){if(l(g,a),g=!0,o>=50){r.append("[MaxEntries]");break}o+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(n,String(f))}catch(k){r.append("[Uninspectable]");continue}p!=null&&p.enumerable?b(p,a+1):r.append("[Empty]")}d("]",g,a)}function y(n,a){let u;try{u=Reflect.ownKeys(n)}catch(g){r.append("[Uninspectable]");return}r.append("{");let c=!1;for(let g of u){if(r.stopped())break;if(o>=50){l(c,a),c=!0,L(r,"\u2026"),r.append(i?": ":":"),r.append("[MaxEntries]");break}o+=1;let f;try{f=Reflect.getOwnPropertyDescriptor(n,g)}catch(p){l(c,a),c=!0,H(r,g),r.append(i?": ":":"),r.append("[Uninspectable]");continue}f!=null&&f.enumerable&&(l(c,a),c=!0,H(r,g),r.append(i?": ":":"),b(f,a+1))}d("}",c,a)}function w(n,a){if(s.has(n)){r.append("[Circular]");return}if(a>=5){r.append("[MaxDepth]");return}let u;try{u=Array.isArray(n)}catch(c){r.append("[Uninspectable]");return}s.add(n);try{u?$(n,a):y(n,a)}finally{s.delete(n)}}function h(n,a){n===null?r.append("null"):typeof n=="string"?L(r,n):typeof n=="number"?r.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?r.append(n?"true":"false"):typeof n>"u"?r.append("undefined"):typeof n=="bigint"?r.append("".concat(n,"n")):typeof n=="symbol"?P(r,n):typeof n=="function"?r.append("[Function]"):w(n,a)}try{return h(e,0),r.result()}catch(n){return"[Uninspectable]"}}var be=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),le=Object.prototype.hasOwnProperty;function E(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function M(e){return typeof e=="string"}function q(e,t){return E(e)&&M(t)&&le.call(e,t)}var I="\xA0";function ae({str:e,idx:t,stopAtNewlines:r,stopAtRawNbsp:i}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||r&&"\n\r".includes(e[~-t])||i&&e[~-t]===I))return~-t;if(e[t-2]&&(e[t-2].trim()||r&&"\n\r".includes(e[t-2])||i&&e[t-2]===I))return t-2;for(let s=t;s--;)if(e[s]&&(e[s].trim()||r&&"\n\r".includes(e[s])||i&&e[s]===I))return s;return null}function D(e,t=0){return ae({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function U(e){return typeof e!="string"?e:e.length?[e]:[]}var Q={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},ue=e=>e+1;function fe(e,t,r,i,s=!1,o=ue){var f;let m=typeof r=="function"?r():r;if(+t<0&&s&&m==="EOL")return m;let l=C(C({},Q),i);if(t>=e.length&&!s)return!1;let d=s?1:r.length,b=0,$=!1,y=!1,w=!1,h=l.maxMismatches,n=t,a=!1,u=!1,c=!1;function g(){return b===1&&h<l.maxMismatches-1}for(;e[n];){let p=o(n);if(l.trimBeforeMatching&&e[n].trim()===""){if(!e[p]&&s&&r==="EOL")return!0;n=o(n);continue}if(l&&!l.i&&((f=l==null?void 0:l.trimCharsBeforeMatching)!=null&&f.includes(e[n]))||l!=null&&l.i&&l.trimCharsBeforeMatching&&l.trimCharsBeforeMatching.map(A=>A.toLowerCase()).includes(e[n].toLowerCase())){if(s&&r==="EOL"&&!e[p])return!0;n=o(n);continue}let k=p>n?r[r.length-d]:r[d-1];if(!l.i&&e[n]===k||l.i&&k!==void 0&&e[n].toLowerCase()===k.toLowerCase()){if(a||(a=!0),w||(w=!0),d===r.length){if(u=!0,h!==l.maxMismatches)return!1}else d===1&&(c=!0);if(d-=1,b++,g())return!1;if(!d)return b!==r.length||h===l.maxMismatches||!$?n:!1}else if(!$&&!b&&($=!0),l.maxMismatches&&h&&n){h-=1;for(let A=0;A<=h;A++){let v=p>n?r[r.length-d+1+A]:r[d-2-A],R=e[o(n)];if(v&&(!l.i&&e[n]===v||l.i&&e[n].toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(b++,g())return!1;d-=2,a=!0;break}else if(R&&v&&(!l.i&&R===v||l.i&&R.toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(!b&&!l.hungry)return!1;d-=1,a=!0;break}else if(v===void 0&&h>=0&&a&&(!l.firstMustMatch||u)&&(!l.lastMustMatch||c))return n}a||(y=n)}else return n===0&&d===1&&!l.lastMustMatch&&w?0:!1;if(y!==!1&&y!==n&&(y=!1),d<1)return n;n=o(n)}if(d>0)return s&&m==="EOL"?!0:l&&l.maxMismatches>=d&&w?y||0:!1}function z(e,t,r,i,s){var $,y,w;if(E(s)&&q(s,"trimBeforeMatching")&&s&&typeof s.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_01] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(s.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let o=C(C({},Q),s);if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=U(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(h=>M(h)?h:String(h)),!M(t)||!t.length)return!1;if(!Number.isInteger(r)||r<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_02] the second argument should be a natural number. Currently it's of a type: ").concat(typeof r,", equal to:\n").concat(O(r,4)));let m,l;if(M(i))m=[i];else if(Array.isArray(i))m=i;else if(!i)m=i;else if(typeof i=="function")m=[],m.push(i);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof i,", equal to:\n").concat(O(i,4)));if(s&&!E(s))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_04] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof s,'", and equal to:\n').concat(O(s,4)));let d=0,b="";if(($=o==null?void 0:o.trimCharsBeforeMatching)!=null&&$.some((h,n)=>h.length>1?(d=n,b=h,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(d," is longer than 1 character, ").concat(b.length," (equals to ").concat(b,"). Please split it into separate characters and put into array as separate elements."));if(!m||!Array.isArray(m)||Array.isArray(m)&&!m.length||Array.isArray(m)&&m.length===1&&M(m[0])&&!m[0].trim()){if(typeof o.cb=="function"){let n,a=r;if((e==="matchLeftIncl"||e==="matchRight")&&(a+=1),e[5]==="L")for(let f=a;f--;){let p=t[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&(p!=null&&p.trim()))&&(!((y=o.trimCharsBeforeMatching)!=null&&y.length)||p!==void 0&&!o.trimCharsBeforeMatching.includes(p))){n=f;break}}else if(e.startsWith("matchRight"))for(let f=a;f<t.length;f++){let p=t[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&p.trim())&&(!((w=o.trimCharsBeforeMatching)!=null&&w.length)||!o.trimCharsBeforeMatching.includes(p))){n=f;break}}if(n===void 0)return!1;let u=t[n],c=n+1,g="";return c&&c>0&&(g=t.slice(0,c)),e[5]==="L"||n&&n>0&&(g=t.slice(n)),o.cb(u,g,n)}let h="";throw s||(h=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_06] 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!').concat(h))}for(let h=0,n=m.length;h<n;h++){l=typeof m[h]=="function";let a=m[h],u,c,g="",f=r;e==="matchRight"?f+=1:e==="matchLeft"&&(f-=1);let p=fe(t,f,a,o,l,k=>e[5]==="L"?k-1:k+1);if(p&&l&&typeof a=="function"&&a()==="EOL")return a()&&(!o.cb||o.cb(u,g,c))?a():!1;if(Number.isInteger(p)&&(c=e.startsWith("matchLeft")?p-1:p+1,e[5]==="L"?g=t.slice(0,p):g=t.slice(c)),c<0&&(c=void 0),t[c]&&(u=t[c]),Number.isInteger(p)&&(!o.cb||o.cb(u,g,c)))return a}return!1}function J(e,t,r,i){return z("matchRightIncl",e,t,r,i)}function K(e,t,r,i){return z("matchRight",e,t,r,i)}var G="4.2.0";function S(e,t){return e[t]==="<"||e[D(e,t)]==="<"}function Z(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var N={allowCustomTagNames:!1,skipOpeningBracket:!1},W="\\",T=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var pe=G;function he(e,t=0,r){var A,v,R;if(typeof e!="string")throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "'.concat(typeof e,'", value being ').concat(O(e,4)));if(!Number.isInteger(t)||t<0)throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "'.concat(typeof t,'", value being ').concat(O(t,4)));let i=C(C({},N),r),s="[\\\\ \\t\\r\\n/]*",o="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",m=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+").concat(s,"\\/?").concat(s,">"),"g"),l=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*").concat(s,">"),"g"),d=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['\"\\w]"),"g"),b=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+[").concat(o,"]+[-").concat(o,"]*(?:-\\w+)?\\s*=\\s*['\"\\w]")),$=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*\\w+\\s*\\/?\\s*>"),"g"),y=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*[").concat(o,"]+[-").concat(o,"]*\\s*\\/?\\s*>"),"g"),w=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),h=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*\\s+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),n=new RegExp("^<".concat(i.skipOpeningBracket?"?\\/?":"","(").concat(s,"[").concat(o,"]+)+").concat(s,"[\\\\/=>]"),""),a=/^\/\s*\w+s*>/,u=t?e.slice(t):e,c=D(e,t),g=!1,f=!1,p={cb:Z,i:!0,trimCharsBeforeMatching:["/",W,"!"," "," ","\n","\r"]};return i.allowCustomTagNames?((i.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[D(e,c)]==="<")||u[0]==="<"&&((A=u[1])!=null&&A.trim()))&&(n.test(u)||/^<\w+$/.test(u))||l.test(u)&&S(e,t)||b.test(u)||y.test(u)&&S(e,t)||h.test(u)||e[t]==="/"&&e[c]!=="<"&&a.test(u))&&(f=!0):(((i.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[D(e,c)]==="<")||(u[0]==="<"||u[0]==="/"&&(!e[c]||e[c]!=="<"))&&((v=u[1])!=null&&v.trim()))&&n.test(u)||m.test(u)&&S(e,t)||d.test(u)||$.test(u)&&S(e,t)||w.test(u))&&(g=!0),g&&J(e,t,T,{cb:x=>{var j;return x===void 0?((e[t]==="<"&&((j=e[t+1])!=null&&j.trim())||e[t-1]==="<")&&(f=!0),!0):x.toUpperCase()===x.toLowerCase()&&!/\d/.test(x)&&x!=="="},i:!0,trimCharsBeforeMatching:["<","/",W,"!"," "," ","\n","\r"]})&&(f=!0)),!f&&e[t]==="<"&&((R=e[t+1])!=null&&R.trim())&&K(e,t,T,p)&&(f=!0),typeof e=="string"&&t<e.length&&f}return ne(ge);})();
10
+ "use strict";var isHtmlTagOpening=(()=>{var B=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var _=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))F.call(t,r)&&_(e,r,t[r]);if(V)for(var r of V(t))ee.call(t,r)&&_(e,r,t[r]);return e};var te=(e,t)=>{for(var r in t)B(e,r,{get:t[r],enumerable:!0})},re=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of X(t))!F.call(e,s)&&s!==r&&B(e,s,{get:()=>t[s],enumerable:!(i=Y(t,s))||i.enumerable});return e};var ne=e=>re(B({},"__esModule",{value:!0}),e);var ge={};te(ge,{defaults:()=>N,isOpening:()=>he,version:()=>pe});function ie(){let e=[],t=0,r=!1;return{append(i){return r?!1:t+i.length>1999?(e.push("\u2026"),t+=1,r=!0,!1):(e.push(i),t+=i.length,!0)},result(){return e.join("")},stopped(){return r}}}function se(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function L(e,t){if(e.append('"')){for(let r=0;r<t.length&&!e.stopped();r+=1){let i=t.charCodeAt(r);i===34?e.append('\\"'):i===92?e.append("\\\\"):i===8?e.append("\\b"):i===9?e.append("\\t"):i===10?e.append("\\n"):i===12?e.append("\\f"):i===13?e.append("\\r"):i<32||i===8232||i===8233||i>=55296&&i<=57343?e.append(se(i)):e.append(t[r])}e.append('"')}}function oe(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function P(e,t){e.append("Symbol(");let r=String(t);r.length>8&&L(e,r.slice(7,-1)),e.append(")")}function H(e,t){typeof t=="symbol"?P(e,t):L(e,String(t))}function O(e,t=0){let r=ie(),i=t===4?4:0,s=new WeakSet,o=0;function m(n){i&&r.append(" ".repeat(n*i))}function l(n,a){n&&r.append(","),i&&(r.append("\n"),m(a+1))}function d(n,a,u){i&&a&&(r.append("\n"),m(u)),r.append(n)}function b(n,a){Object.prototype.hasOwnProperty.call(n,"value")?h(n.value,a):r.append(oe(n))}function $(n,a){let u;try{u=Reflect.getOwnPropertyDescriptor(n,"length")}catch(f){r.append("[Uninspectable]");return}let c=u==null?void 0:u.value;if(!Number.isSafeInteger(c)||c<0){r.append("[Uninspectable]");return}r.append("[");let g=!1;for(let f=0;f<c&&!r.stopped();f+=1){if(l(g,a),g=!0,o>=50){r.append("[MaxEntries]");break}o+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(n,String(f))}catch(k){r.append("[Uninspectable]");continue}p!=null&&p.enumerable?b(p,a+1):r.append("[Empty]")}d("]",g,a)}function y(n,a){let u;try{u=Reflect.ownKeys(n)}catch(g){r.append("[Uninspectable]");return}r.append("{");let c=!1;for(let g of u){if(r.stopped())break;if(o>=50){l(c,a),c=!0,L(r,"\u2026"),r.append(i?": ":":"),r.append("[MaxEntries]");break}o+=1;let f;try{f=Reflect.getOwnPropertyDescriptor(n,g)}catch(p){l(c,a),c=!0,H(r,g),r.append(i?": ":":"),r.append("[Uninspectable]");continue}f!=null&&f.enumerable&&(l(c,a),c=!0,H(r,g),r.append(i?": ":":"),b(f,a+1))}d("}",c,a)}function w(n,a){if(s.has(n)){r.append("[Circular]");return}if(a>=5){r.append("[MaxDepth]");return}let u;try{u=Array.isArray(n)}catch(c){r.append("[Uninspectable]");return}s.add(n);try{u?$(n,a):y(n,a)}finally{s.delete(n)}}function h(n,a){n===null?r.append("null"):typeof n=="string"?L(r,n):typeof n=="number"?r.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?r.append(n?"true":"false"):typeof n>"u"?r.append("undefined"):typeof n=="bigint"?r.append("".concat(n,"n")):typeof n=="symbol"?P(r,n):typeof n=="function"?r.append("[Function]"):w(n,a)}try{return h(e,0),r.result()}catch(n){return"[Uninspectable]"}}var be=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),le=Object.prototype.hasOwnProperty;function E(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function M(e){return typeof e=="string"}function q(e,t){return E(e)&&M(t)&&le.call(e,t)}var I="\xA0";function ae({str:e,idx:t,stopAtNewlines:r,stopAtRawNbsp:i}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||r&&"\n\r".includes(e[~-t])||i&&e[~-t]===I))return~-t;if(e[t-2]&&(e[t-2].trim()||r&&"\n\r".includes(e[t-2])||i&&e[t-2]===I))return t-2;for(let s=t;s--;)if(e[s]&&(e[s].trim()||r&&"\n\r".includes(e[s])||i&&e[s]===I))return s;return null}function D(e,t=0){return ae({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function U(e){return typeof e!="string"?e:e.length?[e]:[]}var Q={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},ue=e=>e+1;function fe(e,t,r,i,s=!1,o=ue){var f;let m=typeof r=="function"?r():r;if(+t<0&&s&&m==="EOL")return m;let l=C(C({},Q),i);if(t>=e.length&&!s)return!1;let d=s?1:r.length,b=0,$=!1,y=!1,w=!1,h=l.maxMismatches,n=t,a=!1,u=!1,c=!1;function g(){return b===1&&h<l.maxMismatches-1}for(;e[n];){let p=o(n);if(l.trimBeforeMatching&&e[n].trim()===""){if(!e[p]&&s&&r==="EOL")return!0;n=o(n);continue}if(l&&!l.i&&((f=l==null?void 0:l.trimCharsBeforeMatching)!=null&&f.includes(e[n]))||l!=null&&l.i&&l.trimCharsBeforeMatching&&l.trimCharsBeforeMatching.map(A=>A.toLowerCase()).includes(e[n].toLowerCase())){if(s&&r==="EOL"&&!e[p])return!0;n=o(n);continue}let k=p>n?r[r.length-d]:r[d-1];if(!l.i&&e[n]===k||l.i&&k!==void 0&&e[n].toLowerCase()===k.toLowerCase()){if(a||(a=!0),w||(w=!0),d===r.length){if(u=!0,h!==l.maxMismatches)return!1}else d===1&&(c=!0);if(d-=1,b++,g())return!1;if(!d)return b!==r.length||h===l.maxMismatches||!$?n:!1}else if(!$&&!b&&($=!0),l.maxMismatches&&h&&n){h-=1;for(let A=0;A<=h;A++){let v=p>n?r[r.length-d+1+A]:r[d-2-A],R=e[o(n)];if(v&&(!l.i&&e[n]===v||l.i&&e[n].toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(b++,g())return!1;d-=2,a=!0;break}else if(R&&v&&(!l.i&&R===v||l.i&&R.toLowerCase()===v.toLowerCase())&&(!l.firstMustMatch||d!==r.length)){if(!b&&!l.hungry)return!1;d-=1,a=!0;break}else if(v===void 0&&h>=0&&a&&(!l.firstMustMatch||u)&&(!l.lastMustMatch||c))return n}a||(y=n)}else return n===0&&d===1&&!l.lastMustMatch&&w?0:!1;if(y!==!1&&y!==n&&(y=!1),d<1)return n;n=o(n)}if(d>0)return s&&m==="EOL"?!0:l&&l.maxMismatches>=d&&w?y||0:!1}function z(e,t,r,i,s){var $,y,w;if(E(s)&&q(s,"trimBeforeMatching")&&s&&typeof s.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_01] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(s.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let o=C(C({},Q),s);if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=U(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(h=>M(h)?h:String(h)),!M(t)||!t.length)return!1;if(!Number.isInteger(r)||r<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_02] the second argument should be a natural number. Currently it's of a type: ").concat(typeof r,", equal to:\n").concat(O(r,4)));let m,l;if(M(i))m=[i];else if(Array.isArray(i))m=i;else if(!i)m=i;else if(typeof i=="function")m=[],m.push(i);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof i,", equal to:\n").concat(O(i,4)));if(s&&!E(s))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_04] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof s,'", and equal to:\n').concat(O(s,4)));let d=0,b="";if(($=o==null?void 0:o.trimCharsBeforeMatching)!=null&&$.some((h,n)=>h.length>1?(d=n,b=h,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(d," is longer than 1 character, ").concat(b.length," (equals to ").concat(b,"). Please split it into separate characters and put into array as separate elements."));if(!m||!Array.isArray(m)||Array.isArray(m)&&!m.length||Array.isArray(m)&&m.length===1&&M(m[0])&&!m[0].trim()){if(typeof o.cb=="function"){let n,a=r;if((e==="matchLeftIncl"||e==="matchRight")&&(a+=1),e[5]==="L")for(let f=a;f--;){let p=t[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&(p!=null&&p.trim()))&&(!((y=o.trimCharsBeforeMatching)!=null&&y.length)||p!==void 0&&!o.trimCharsBeforeMatching.includes(p))){n=f;break}}else if(e.startsWith("matchRight"))for(let f=a;f<t.length;f++){let p=t[f];if((!o.trimBeforeMatching||o.trimBeforeMatching&&p.trim())&&(!((w=o.trimCharsBeforeMatching)!=null&&w.length)||!o.trimCharsBeforeMatching.includes(p))){n=f;break}}if(n===void 0)return!1;let u=t[n],c=n+1,g="";return c&&c>0&&(g=t.slice(0,c)),e[5]==="L"||n&&n>0&&(g=t.slice(n)),o.cb(u,g,n)}let h="";throw s||(h=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_06] 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!').concat(h))}for(let h=0,n=m.length;h<n;h++){l=typeof m[h]=="function";let a=m[h],u,c,g="",f=r;e==="matchRight"?f+=1:e==="matchLeft"&&(f-=1);let p=fe(t,f,a,o,l,k=>e[5]==="L"?k-1:k+1);if(p&&l&&typeof a=="function"&&a()==="EOL")return a()&&(!o.cb||o.cb(u,g,c))?a():!1;if(Number.isInteger(p)&&(c=e.startsWith("matchLeft")?p-1:p+1,e[5]==="L"?g=t.slice(0,p):g=t.slice(c)),c<0&&(c=void 0),t[c]&&(u=t[c]),Number.isInteger(p)&&(!o.cb||o.cb(u,g,c)))return a}return!1}function J(e,t,r,i){return z("matchRightIncl",e,t,r,i)}function K(e,t,r,i){return z("matchRight",e,t,r,i)}var G="4.2.1";function S(e,t){return e[t]==="<"||e[D(e,t)]==="<"}function Z(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}var N={allowCustomTagNames:!1,skipOpeningBracket:!1},W="\\",T=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];var pe=G;function he(e,t=0,r){var A,v,R;if(typeof e!="string")throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_01] the first input argument should have been a string but it was given as "'.concat(typeof e,'", value being ').concat(O(e,4)));if(!Number.isInteger(t)||t<0)throw new Error('is-html-tag-opening/isOpening(): [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "'.concat(typeof t,'", value being ').concat(O(t,4)));let i=C(C({},N),r),s="[\\\\ \\t\\r\\n/]*",o="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",m=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+").concat(s,"\\/?").concat(s,">"),"g"),l=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*").concat(s,">"),"g"),d=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['\"\\w]"),"g"),b=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\w+\\s+[").concat(o,"]+[-").concat(o,"]*(?:-\\w+)?\\s*=\\s*['\"\\w]")),$=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*\\w+\\s*\\/?\\s*>"),"g"),y=new RegExp("^<".concat(i.skipOpeningBracket?"?":"","\\s*\\/?\\s*[").concat(o,"]+[-").concat(o,"]*\\s*\\/?\\s*>"),"g"),w=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"\\w+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),h=new RegExp("^<".concat(i.skipOpeningBracket?"?":"").concat(s,"[").concat(o,"]+[-").concat(o,"]*\\s+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),n=new RegExp("^<".concat(i.skipOpeningBracket?"?\\/?":"","(").concat(s,"[").concat(o,"]+)+").concat(s,"[\\\\/=>]"),""),a=/^\/\s*\w+s*>/,u=t?e.slice(t):e,c=D(e,t),g=!1,f=!1,p={cb:Z,i:!0,trimCharsBeforeMatching:["/",W,"!"," "," ","\n","\r"]};return i.allowCustomTagNames?((i.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[D(e,c)]==="<")||u[0]==="<"&&((A=u[1])!=null&&A.trim()))&&(n.test(u)||/^<\w+$/.test(u))||l.test(u)&&S(e,t)||b.test(u)||y.test(u)&&S(e,t)||h.test(u)||e[t]==="/"&&e[c]!=="<"&&a.test(u))&&(f=!0):(((i.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[D(e,c)]==="<")||(u[0]==="<"||u[0]==="/"&&(!e[c]||e[c]!=="<"))&&((v=u[1])!=null&&v.trim()))&&n.test(u)||m.test(u)&&S(e,t)||d.test(u)||$.test(u)&&S(e,t)||w.test(u))&&(g=!0),g&&J(e,t,T,{cb:x=>{var j;return x===void 0?((e[t]==="<"&&((j=e[t+1])!=null&&j.trim())||e[t-1]==="<")&&(f=!0),!0):x.toUpperCase()===x.toLowerCase()&&!/\d/.test(x)&&x!=="="},i:!0,trimCharsBeforeMatching:["<","/",W,"!"," "," ","\n","\r"]})&&(f=!0)),!f&&e[t]==="<"&&((R=e[t+1])!=null&&R.trim())&&K(e,t,T,p)&&(f=!0),typeof e=="string"&&t<e.length&&f}return ne(ge);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
@@ -27,7 +27,7 @@
27
27
  /**
28
28
  * @name arrayiffy-if-string
29
29
  * @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
30
- * @version 5.2.0
30
+ * @version 5.2.1
31
31
  * @author Roy Revelt
32
32
  * @license MIT
33
33
  * {@link https://codsen.com/os/arrayiffy-if-string/}
@@ -35,7 +35,7 @@
35
35
  /**
36
36
  * @name string-match-left-right
37
37
  * @fileoverview Match substrings on the left or right of a given index, ignoring whitespace
38
- * @version 9.2.0
38
+ * @version 9.2.1
39
39
  * @author Roy Revelt
40
40
  * @license MIT
41
41
  * {@link https://codsen.com/os/string-match-left-right/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-html-tag-opening",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Does an HTML tag start at given position?",
5
5
  "keywords": [
6
6
  "bracket",
@@ -71,7 +71,7 @@
71
71
  "dependencies": {
72
72
  "codsen-utils": "^1.8.0",
73
73
  "string-left-right": "^6.2.0",
74
- "string-match-left-right": "^9.2.0"
74
+ "string-match-left-right": "^9.2.1"
75
75
  },
76
76
  "devDependencies": {
77
77
  "test-mixer": "^4.3.0"