Title of Repl has "(1)" in it, but no duplicate Repl exists

Description:
I have a “(1)” in the title of two of my Repls, do not know why. No duplicates exist.

Expected vs Current Behavior:
Expected: Has a normal title.
Current: Has a “(1)” in title, indicating a duplicate.

Steps to reproduce:

  1. Make a Repl
  2. Make sure the Repl is completely unique, with a unique title, template, everything.
  3. See if it has “(1)” in the title.
    I do not know if this would be able to reproduced easily.

Bug appears at this link: https://replit.com/@360jouer/Random-Number-Generator-C-1#main.cpp

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 OPR/104.0.0.0

Replit Profile: https://replit.com/@360jouer

I do see two repos with the same name in your screenshot.
And given that the description is different, it means they a two different repo’s. It does not matter if they are duplicate, name must be unique.

4 Likes

I don’t understand. Is it because C++ and C# have special characters and it counts it as the same title?

1 Like

Actually, that worked. Thank you!

1 Like

Never trust special character :grinning:

4 Likes

I think the reason is because when replit compares repl names, it "slug"ifies it, basically turning it into a url-safe string. For you, it’s “C++ stuff” which converts to “c-stuff”, with the “++” being deleted. same with “C# stuff” → “c-stuff”. You can check the repl link for the "slug"ifying in action.

3 Likes

The special characters # and ++ ultimately get omitted from the final slug, so technically they do have the same name. (Random Number Generator (C) and Random Number Generator (C) (1), same with c stuff and c stuff (1)

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.