From afbac084b676b0b6db9515623df798142acc93bc Mon Sep 17 00:00:00 2001 From: Mark Townsend Date: Wed, 30 Aug 2023 07:50:09 +0100 Subject: [PATCH 1/3] Minor corrections to phrasing/spelling. --- src/tools/bcrypt/bcrypt.vue | 2 +- .../date-time-converter.vue | 2 +- .../password-strength-analyser.service.ts | 24 +++++++++---------- src/tools/uuid-generator/index.ts | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/tools/bcrypt/bcrypt.vue b/src/tools/bcrypt/bcrypt.vue index b16676498..55c0005f3 100644 --- a/src/tools/bcrypt/bcrypt.vue +++ b/src/tools/bcrypt/bcrypt.vue @@ -45,7 +45,7 @@ const compareMatch = computed(() => compareSync(compareString.value, compareHash - +
diff --git a/src/tools/date-time-converter/date-time-converter.vue b/src/tools/date-time-converter/date-time-converter.vue index 88fa60121..241c9cf6f 100644 --- a/src/tools/date-time-converter/date-time-converter.vue +++ b/src/tools/date-time-converter/date-time-converter.vue @@ -146,7 +146,7 @@ function formatDateUsingFormatter(formatter: (date: Date) => string, date?: Date { + .map(({ unit, secondsInUnit, plural, format = _.identity }) => { const quantity = Math.floor(seconds / secondsInUnit); seconds %= secondsInUnit; @@ -41,7 +41,7 @@ function getHumanFriendlyDuration({ seconds }: { seconds: number }) { } const formattedQuantity = format(quantity); - return `${formattedQuantity} ${unit}${quantity > 1 ? 's' : ''}`; + return `${formattedQuantity} ${quantity > 1 ? plural : unit}`; }) .compact() .take(2) diff --git a/src/tools/uuid-generator/index.ts b/src/tools/uuid-generator/index.ts index 2b4b3d34d..ae5ae0dad 100644 --- a/src/tools/uuid-generator/index.ts +++ b/src/tools/uuid-generator/index.ts @@ -5,7 +5,7 @@ export const tool = defineTool({ name: 'UUIDs v4 generator', path: '/uuid-generator', description: - 'A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot !).', + 'A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!).', keywords: ['uuid', 'v4', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique'], component: () => import('./uuid-generator.vue'), icon: Fingerprint, From 786a2492a2460c0d92c837d42a6e0178b9c94872 Mon Sep 17 00:00:00 2001 From: Mark Townsend Date: Wed, 30 Aug 2023 07:54:50 +0100 Subject: [PATCH 2/3] Corrected 'millennia'. --- .../password-strength-analyser.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/password-strength-analyser/password-strength-analyser.service.ts b/src/tools/password-strength-analyser/password-strength-analyser.service.ts index 710077472..aa2818488 100644 --- a/src/tools/password-strength-analyser/password-strength-analyser.service.ts +++ b/src/tools/password-strength-analyser/password-strength-analyser.service.ts @@ -19,7 +19,7 @@ function getHumanFriendlyDuration({ seconds }: { seconds: number }) { } const timeUnits = [ - { unit: 'millenium', secondsInUnit: 31536000000, format: prettifyExponentialNotation, plural: 'millenia' }, + { unit: 'millenium', secondsInUnit: 31536000000, format: prettifyExponentialNotation, plural: 'millennia' }, { unit: 'century', secondsInUnit: 3153600000, plural: 'centuries' }, { unit: 'decade', secondsInUnit: 315360000, plural: 'decades' }, { unit: 'year', secondsInUnit: 31536000, plural: 'years' }, From c3b641136e82c23d868add1b042ebd793a966f3a Mon Sep 17 00:00:00 2001 From: WhackableMole Date: Mon, 4 Sep 2023 13:44:08 +0100 Subject: [PATCH 3/3] Corrected tests. --- .../password-strength-analyser.e2e.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/password-strength-analyser/password-strength-analyser.e2e.spec.ts b/src/tools/password-strength-analyser/password-strength-analyser.e2e.spec.ts index a694c5473..9a3c9319d 100644 --- a/src/tools/password-strength-analyser/password-strength-analyser.e2e.spec.ts +++ b/src/tools/password-strength-analyser/password-strength-analyser.e2e.spec.ts @@ -14,6 +14,6 @@ test.describe('Tool - Password strength analyser', () => { const crackDuration = await page.getByTestId('crack-duration').textContent(); - expect(crackDuration).toEqual('15,091 milleniums, 3 centurys'); + expect(crackDuration).toEqual('15,091 millennia, 3 centuries'); }); });