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.
This commit is contained in:
xixu-me committed 2025-07-14 10:52:06 +08:00
1 parent ba8f2f1cb3
commit 11fb5c1bd5
1 file changed
+1 -5
+1 -5
View File
@@ -99,11 +99,7 @@ document.addEventListener("DOMContentLoaded", () => {
allServices = mrsFiles.map((file) => { allServices = mrsFiles.map((file) => {
const name = file.path.replace(".mrs", ""); const name = file.path.replace(".mrs", "");
// A simple heuristic to format the name const formattedName = name;
const formattedName = name
.replace(/-/g, " ")
.replace("Google", "Google ")
.replace(" ", "");
const serviceDefinition = { const serviceDefinition = {
name: formattedName, name: formattedName,