@vendure/common
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -10,2 +10,3 @@ "use strict"; | ||
function normalizeString(input, spaceReplacer = ' ') { | ||
const multipleSequentialReplacerRegex = new RegExp(`([${spaceReplacer}]){2,}`, 'g'); | ||
return (input || '') | ||
@@ -19,5 +20,6 @@ .normalize('NFD') | ||
.replace(/[!"£$%^&*()+[\]{};:@#~?\\/,|><`¬'=‘’©®™]/g, '') | ||
.replace(/\s+/g, spaceReplacer); | ||
.replace(/\s+/g, spaceReplacer) | ||
.replace(multipleSequentialReplacerRegex, spaceReplacer); | ||
} | ||
exports.normalizeString = normalizeString; | ||
//# sourceMappingURL=normalize-string.js.map |
@@ -72,3 +72,3 @@ import { LanguageCode, LocalizedString } from './generated-types'; | ||
* | ||
* Additionally, the CustomFieldType also dictates which [configuration options](/reference/typescript-api/custom-fields/#custom-field-config-properties) | ||
* Additionally, the CustomFieldType also dictates which [configuration options](/guides/developer-guide/custom-fields/#custom-field-config-properties) | ||
* are available for that custom field. | ||
@@ -75,0 +75,0 @@ * |
@@ -27,2 +27,7 @@ # License | ||
Additional permission under GNU GPL version 3 section 7: | ||
An additional exception under section 7 of the GPL is included in the plugin-exception.txt file, | ||
which allows you to distribute Vendure plugins (i.e. extensions) under a different license. | ||
## Vendure Commercial License (VCL) | ||
@@ -29,0 +34,0 @@ |
{ | ||
"name": "@vendure/common", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"main": "index.js", | ||
@@ -25,3 +25,3 @@ "license": "GPL-3.0-or-later", | ||
}, | ||
"gitHead": "8d3a94140daf5180bd321e9714ebcf85a2ef9a68" | ||
"gitHead": "358b4cfe83d001e119ddc4b9eea7dd999b74a2c9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
482976
11925