Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/server/dehyphenateUrl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const dehyphenateUrl = (name: string) => {
return name.replace("-", " ");
return name.replaceAll("-", " ");
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix for dehyphenateUrl should include test coverage to verify that all hyphens are replaced correctly. Consider adding tests that cover:

  • Single hyphen: "foo-bar""foo bar"
  • Multiple hyphens: "foo-bar-baz""foo bar baz"
  • No hyphens: "foobar""foobar"
  • Edge cases: empty string, string with only hyphens, etc.

This would prevent regression of the original bug where only the first hyphen was replaced.

Copilot uses AI. Check for mistakes.
};
Loading