From dcea9ff02c958d7e3d180478e8ebd82228a3892f Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Thu, 9 Jan 2025 16:45:03 -0700 Subject: [PATCH] fix: --- ui/app/helpers/string-to-camel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/helpers/string-to-camel.js b/ui/app/helpers/string-to-camel.js index da2ca29a151b..45051eea63ba 100644 --- a/ui/app/helpers/string-to-camel.js +++ b/ui/app/helpers/string-to-camel.js @@ -14,7 +14,7 @@ export function stringToCamelCase(str) { if (Array.isArray(str)) { return str.map((s) => { assert(`must pass in a string or array of strings`, typeof s === 'string'); - // lower case the entire string to handle situations like IAM Endpoint -> iamEndpoint instead of + // lower case the entire string to handle situations like IAM Endpoint -> iamEndpoint instead of iAMEndpoint s = s.toLowerCase(); return s .replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) { @@ -23,7 +23,7 @@ export function stringToCamelCase(str) { .replace(/\s+/g, ''); }); } else { - // lower case the entire string to handle situations like IAM Endpoint -> iamEndpoint instead of + // lower case the entire string to handle situations like IAM Endpoint -> iamEndpoint instead of iAMEndpoint assert(`must pass in a string or array of strings`, typeof str === 'string'); str = str.toLowerCase(); return str