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:
1 parent
ba8f2f1cb3
commit
11fb5c1bd5
1 file changed
+1
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user