Compare commits
No commits in common. "602765bfbbd469fdc422a65fa9a06b3affc733a0" and "4e181d5ff78f4f03bebfb3ffd3df7b12b0701253" have entirely different histories.
602765bfbb
...
4e181d5ff7
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx-web",
|
"name": "traxxx-web",
|
||||||
"version": "0.42.9",
|
"version": "0.42.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.42.9",
|
"version": "0.42.8",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@brillout/json-serializer": "^0.5.8",
|
"@brillout/json-serializer": "^0.5.8",
|
||||||
"@dicebear/collection": "^7.0.5",
|
"@dicebear/collection": "^7.0.5",
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"vite": "$vite"
|
"vite": "$vite"
|
||||||
},
|
},
|
||||||
"version": "0.42.9",
|
"version": "0.42.8",
|
||||||
"imports": {
|
"imports": {
|
||||||
"#/*": "./*.js"
|
"#/*": "./*.js"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ const accentMap = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const plainCharRegex = /[a-zA-Z0-9]/;
|
const plainCharRegex = /[a-zA-Z0-9]/;
|
||||||
const defaultPunctuationRegex = /[.,?!:;&'‘’"“”…()[]{}<>\/*—]/;
|
const defaultPunctuationRegex = /[.,?!:;&'‘’"“”…()[]{}<>\/*—-]/;
|
||||||
const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
|
const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
|
||||||
|
|
||||||
export default function slugify(strings, delimiter = '-', {
|
export default function slugify(strings, delimiter = '-', {
|
||||||
|
|
@ -64,7 +64,6 @@ export default function slugify(strings, delimiter = '-', {
|
||||||
: string;
|
: string;
|
||||||
|
|
||||||
const normalized = casedString
|
const normalized = casedString
|
||||||
.replace(/[_-]+/g, ' ')
|
|
||||||
.split('')
|
.split('')
|
||||||
.map((char) => {
|
.map((char) => {
|
||||||
if (char === ' ') {
|
if (char === ' ') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue