gatsby-core-theme 44.6.0 → 44.6.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/helpers/getters.mjs +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [44.6.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.6.0...v44.6.1) (2025-11-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add a helper ([39a2f0a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/39a2f0a1fae3edb90e2765a1e993378cb7b7052b))
|
|
7
|
+
|
|
1
8
|
# [44.6.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.5.4...v44.6.0) (2025-11-05)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/helpers/getters.mjs
CHANGED
|
@@ -561,3 +561,12 @@ export function setName(string) {
|
|
|
561
561
|
(match, p1, p2) => `${p1}${p2}/"`
|
|
562
562
|
);
|
|
563
563
|
};
|
|
564
|
+
|
|
565
|
+
export const removeDomain = (url) => {
|
|
566
|
+
try {
|
|
567
|
+
const domainRegex = /^https?:\/\/[^/]+/;
|
|
568
|
+
return url.replace(domainRegex, '');
|
|
569
|
+
} catch (error) {
|
|
570
|
+
return null; // Return null if the URL is invalid
|
|
571
|
+
}
|
|
572
|
+
}
|