From 11fb5c1bd565a616d20218690924a60e9ac0e122 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Mon, 14 Jul 2025 10:52:06 +0800 Subject: [PATCH] Remove name formatting heuristic in service mapping Simplifies the service name assignment by removing the previous formatting logic, which replaced dashes and added spaces. Now, the raw file path (without the .mrs extension) is used directly as the service name. --- script.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/script.js b/script.js index d338f66..d91189a 100644 --- a/script.js +++ b/script.js @@ -99,11 +99,7 @@ document.addEventListener("DOMContentLoaded", () => { allServices = mrsFiles.map((file) => { const name = file.path.replace(".mrs", ""); - // A simple heuristic to format the name - const formattedName = name - .replace(/-/g, " ") - .replace("Google", "Google ") - .replace(" ", ""); + const formattedName = name; const serviceDefinition = { name: formattedName,