From e4b0eb0f1a5abde0a8f1e2ce09edd29680444b6c Mon Sep 17 00:00:00 2001 From: Mentor Date: Tue, 7 Nov 2023 16:04:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20regular=20lowercasing,=20not=20l?= =?UTF-8?q?ocale=20based?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/sanitisers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5bbb458..b684607 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@poap/sane-data", "private": false, - "version": "0.0.5", + "version": "0.0.6", "description": "A collection of data validations and sanetisers", "main": "./src/index.js", "browser": "./dist/browser/index.js", diff --git a/src/modules/sanitisers.js b/src/modules/sanitisers.js index 8b5e0a1..ab54f1e 100644 --- a/src/modules/sanitisers.js +++ b/src/modules/sanitisers.js @@ -123,4 +123,4 @@ export const sanetise_email = ( input, throw_on_fail = true ) => sanetize( * @param {String} input - Input string * @returns {String} Lowercased and trimmed version of the input */ -export const sanetise_string = input => `${ input }`.toLocaleLowerCase().trim() \ No newline at end of file +export const sanetise_string = input => `${ input }`.toLowerCase().trim() \ No newline at end of file