Comparing version 7.1.1 to 7.1.2
@@ -34,9 +34,8 @@ // external | ||
return ''; | ||
// convert to https, trim www., www1. | ||
input = input.replace(/^http:\/\//, 'https://').replace(/^www\d*\./, ''); | ||
if (input.startsWith('https://') === false) | ||
input = `https://${input}`; | ||
// trim trailing slashes, e.g. .eu/ => .eu | ||
input = input.replace(/\/+$/, ''); | ||
return input; | ||
// strip schema to ensure https, strip www, strip trailing slashes | ||
return (`https://` + | ||
input | ||
.replace(/^.+?:[/][/]/, '') | ||
.replace(/^www\d*\./, '') | ||
.replace(/[/]+$/, '')); | ||
} | ||
@@ -43,0 +42,0 @@ /** A rendering style for {@link Fellow} */ |
@@ -35,8 +35,10 @@ // external | ||
if (typeof input !== 'string') return '' | ||
// convert to https, trim www., www1. | ||
input = input.replace(/^http:\/\//, 'https://').replace(/^www\d*\./, '') | ||
if (input.startsWith('https://') === false) input = `https://${input}` | ||
// trim trailing slashes, e.g. .eu/ => .eu | ||
input = input.replace(/\/+$/, '') | ||
return input | ||
// strip schema to ensure https, strip www, strip trailing slashes | ||
return ( | ||
`https://` + | ||
input | ||
.replace(/^.+?:[/][/]/, '') | ||
.replace(/^www\d*\./, '') | ||
.replace(/[/]+$/, '') | ||
) | ||
} | ||
@@ -43,0 +45,0 @@ |
@@ -34,9 +34,8 @@ // external | ||
return ''; | ||
// convert to https, trim www., www1. | ||
input = input.replace(/^http:\/\//, 'https://').replace(/^www\d*\./, ''); | ||
if (input.startsWith('https://') === false) | ||
input = `https://${input}`; | ||
// trim trailing slashes, e.g. .eu/ => .eu | ||
input = input.replace(/\/+$/, ''); | ||
return input; | ||
// strip schema to ensure https, strip www, strip trailing slashes | ||
return (`https://` + | ||
input | ||
.replace(/^.+?:[/][/]/, '') | ||
.replace(/^www\d*\./, '') | ||
.replace(/[/]+$/, '')); | ||
} | ||
@@ -43,0 +42,0 @@ /** A rendering style for {@link Fellow} */ |
@@ -40,9 +40,8 @@ "use strict"; | ||
return ''; | ||
// convert to https, trim www., www1. | ||
input = input.replace(/^http:\/\//, 'https://').replace(/^www\d*\./, ''); | ||
if (input.startsWith('https://') === false) | ||
input = `https://${input}`; | ||
// trim trailing slashes, e.g. .eu/ => .eu | ||
input = input.replace(/\/+$/, ''); | ||
return input; | ||
// strip schema to ensure https, strip www, strip trailing slashes | ||
return (`https://` + | ||
input | ||
.replace(/^.+?:[/][/]/, '') | ||
.replace(/^www\d*\./, '') | ||
.replace(/[/]+$/, '')); | ||
} | ||
@@ -49,0 +48,0 @@ /** A rendering style for {@link Fellow} */ |
@@ -40,9 +40,8 @@ "use strict"; | ||
return ''; | ||
// convert to https, trim www., www1. | ||
input = input.replace(/^http:\/\//, 'https://').replace(/^www\d*\./, ''); | ||
if (input.startsWith('https://') === false) | ||
input = `https://${input}`; | ||
// trim trailing slashes, e.g. .eu/ => .eu | ||
input = input.replace(/\/+$/, ''); | ||
return input; | ||
// strip schema to ensure https, strip www, strip trailing slashes | ||
return (`https://` + | ||
input | ||
.replace(/^.+?:[/][/]/, '') | ||
.replace(/^www\d*\./, '') | ||
.replace(/[/]+$/, '')); | ||
} | ||
@@ -49,0 +48,0 @@ /** A rendering style for {@link Fellow} */ |
{ | ||
"name": "fellow", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"license": "Artistic-2.0", | ||
@@ -93,3 +93,3 @@ "description": "Fellow is a package for creating people that can be unified by their shared values via a singleton list on the class", | ||
"Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.", | ||
"Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.", | ||
"Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.", | ||
"Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)", | ||
@@ -104,3 +104,3 @@ "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)", | ||
"Chad (https://opencollective.com/chad8)", | ||
"Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)", | ||
"Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)", | ||
"entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)", | ||
@@ -237,3 +237,3 @@ "Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)", | ||
"@bevry/render": "^1.1.0", | ||
"editions": "^6.20.0" | ||
"editions": "^6.21.0" | ||
}, | ||
@@ -244,3 +244,3 @@ "devDependencies": { | ||
"@typescript-eslint/parser": "^6.16.0", | ||
"assert-helpers": "^11.11.0", | ||
"assert-helpers": "^11.12.0", | ||
"eslint": "^8.56.0", | ||
@@ -251,6 +251,6 @@ "eslint-config-bevry": "^5.3.0", | ||
"eslint-plugin-prettier": "^5.1.2", | ||
"kava": "^7.6.0", | ||
"kava": "^7.7.0", | ||
"make-deno-edition": "^2.2.0", | ||
"prettier": "^3.1.1", | ||
"projectz": "^4.1.0", | ||
"projectz": "^4.1.1", | ||
"typedoc": "^0.25.4", | ||
@@ -257,0 +257,0 @@ "typescript": "5.3.3", |
@@ -51,3 +51,3 @@ <!-- TITLE/ --> | ||
``` typescript | ||
import pkg from 'https://unpkg.com/fellow@^7.1.1/edition-deno/index.ts' | ||
import pkg from 'https://unpkg.com/fellow@^7.1.2/edition-deno/index.ts' | ||
``` | ||
@@ -58,3 +58,3 @@ ### [Skypack](https://www.skypack.dev "Skypack is a JavaScript Delivery Network for modern web apps") | ||
<script type="module"> | ||
import pkg from '//cdn.skypack.dev/fellow@^7.1.1' | ||
import pkg from '//cdn.skypack.dev/fellow@^7.1.2' | ||
</script> | ||
@@ -66,3 +66,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//unpkg.com/fellow@^7.1.1' | ||
import pkg from '//unpkg.com/fellow@^7.1.2' | ||
</script> | ||
@@ -74,3 +74,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//dev.jspm.io/fellow@7.1.1' | ||
import pkg from '//dev.jspm.io/fellow@7.1.2' | ||
</script> | ||
@@ -114,3 +114,3 @@ ``` | ||
- [Benjamin Lupton](https://github.com/balupton) — Accelerating collaborative wisdom. | ||
- [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom. | ||
@@ -136,3 +136,3 @@ #### Contributors | ||
- [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders. | ||
- [Codecov](https://codecov.io/) — Empower developers with tools to improve code quality and testing. | ||
- [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing. | ||
- [Poonacha Medappa](https://poonachamedappa.com) | ||
@@ -148,3 +148,3 @@ - [Rob Morris](https://github.com/Rob-Morris) | ||
- [Chad](https://opencollective.com/chad8) | ||
- [Codecov](https://codecov.io/) | ||
- [Codecov](https://codecov.io) | ||
- [entroniq](https://gitlab.com/entroniq) | ||
@@ -151,0 +151,0 @@ - [Jean-Luc Geering](https://github.com/jlgeering) |
@@ -35,8 +35,10 @@ // external | ||
if (typeof input !== 'string') return '' | ||
// convert to https, trim www., www1. | ||
input = input.replace(/^http:\/\//, 'https://').replace(/^www\d*\./, '') | ||
if (input.startsWith('https://') === false) input = `https://${input}` | ||
// trim trailing slashes, e.g. .eu/ => .eu | ||
input = input.replace(/\/+$/, '') | ||
return input | ||
// strip schema to ensure https, strip www, strip trailing slashes | ||
return ( | ||
`https://` + | ||
input | ||
.replace(/^.+?:[/][/]/, '') | ||
.replace(/^www\d*\./, '') | ||
.replace(/[/]+$/, '') | ||
) | ||
} | ||
@@ -43,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
258132
Updatededitions@^6.21.0