@koine/utils 2.0.0-beta.120 → 2.0.0-beta.121

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.
@@ -2,9 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- let t=/^(?:[a-z+]+:)?\/\//i;/**
5
+ let t=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;// let reg = /^(?:[a-z+]+:)?\/\//i;
6
+ /**
7
+ * @borrows [next.js source code](https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/utils.ts#L322-L325)
6
8
  * @borrows [SO's answer](https://stackoverflow.com/a/19709846/1938970)
7
9
  *
10
+ * @see Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
11
+ * @see Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
12
+ *
8
13
  * @category is
9
14
  */let isAbsoluteUrl=e=>t.test(e);
10
15
 
@@ -1,6 +1,11 @@
1
- let t=/^(?:[a-z+]+:)?\/\//i;/**
1
+ let t=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;// let reg = /^(?:[a-z+]+:)?\/\//i;
2
+ /**
3
+ * @borrows [next.js source code](https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/utils.ts#L322-L325)
2
4
  * @borrows [SO's answer](https://stackoverflow.com/a/19709846/1938970)
3
5
  *
6
+ * @see Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
7
+ * @see Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
8
+ *
4
9
  * @category is
5
10
  */let isAbsoluteUrl=e=>t.test(e);
6
11
 
package/package.json CHANGED
@@ -849,5 +849,5 @@
849
849
  },
850
850
  "module": "./index.esm.js",
851
851
  "main": "./index.cjs.js",
852
- "version": "2.0.0-beta.120"
852
+ "version": "2.0.0-beta.121"
853
853
  }