Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian ee23dc0358 1.3.1 2026-01-09 01:51:47 +01:00
DebaucheryLibrarian b2305966ed Using CommonJS for slugify. 2026-01-09 01:51:45 +01:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx-utils", "name": "traxxx-utils",
"version": "1.3.0", "version": "1.3.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx-utils", "name": "traxxx-utils",
"version": "1.3.0", "version": "1.3.1",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.25.7", "@babel/cli": "^7.25.7",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx-common", "name": "traxxx-common",
"version": "1.3.0", "version": "1.3.1",
"description": "Common utilities for traxxx core and web.", "description": "Common utilities for traxxx core and web.",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -43,7 +43,7 @@ const plainCharRegex = /[a-zA-Z0-9]/;
const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—-]/; const defaultPunctuationRegex = /[.,?!:;&'"“”…()[]{}<>\/*—-]/;
const defaultSymbolRegex = /[@$€£#%^+=\\~]/; const defaultSymbolRegex = /[@$€£#%^+=\\~]/;
export default function slugify(strings, delimiter = '-', { module.exports = function slugify(strings, delimiter = '-', {
limit = 1000, limit = 1000,
lower = true, lower = true,
encode = false, encode = false,