aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/text-processors.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/text-processors.js')
-rwxr-xr-xext/js/language/text-processors.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/language/text-processors.js b/ext/js/language/text-processors.js
index e7855df2..3c016398 100755
--- a/ext/js/language/text-processors.js
+++ b/ext/js/language/text-processors.js
@@ -23,7 +23,7 @@ export const decapitalize = {
name: 'Decapitalize text',
description: 'CAPITALIZED TEXT → capitalized text',
options: basicTextProcessorOptions,
- process: (str, setting) => (setting ? str.toLowerCase() : str)
+ process: (str, setting) => (setting ? str.toLowerCase() : str),
};
/** @type {import('language').TextProcessor<boolean>} */
@@ -31,7 +31,7 @@ export const capitalizeFirstLetter = {
name: 'Capitalize first letter',
description: 'lowercase text → Lowercase text',
options: basicTextProcessorOptions,
- process: (str, setting) => (setting ? str.charAt(0).toUpperCase() + str.slice(1) : str)
+ process: (str, setting) => (setting ? str.charAt(0).toUpperCase() + str.slice(1) : str),
};
/**
@@ -45,5 +45,5 @@ export const removeAlphabeticDiacritics = {
name: 'Remove Alphabetic Diacritics',
description: 'ἄήé -> αηe',
options: basicTextProcessorOptions,
- process: (str, setting) => (setting ? str.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : str)
+ process: (str, setting) => (setting ? str.normalize('NFD').replace(/[\u0300-\u036f]/g, '') : str),
};