searleser97 / cpbooster

Competitive Programming Booster
GNU General Public License v3.0
151 stars 31 forks source link

Problem with multiple dots in problem name #39

Closed user202729 closed 2 years ago

user202729 commented 2 years ago

The current problem name detection code...

https://github.com/searleser97/cpbooster/blob/f55165fc5accf10f1bddf1a4d841004b94f49c80/app/src/Clone/CCServer.ts#L48

... doesn't parse correctly the cases where there's a dot in the problem name, such as https://codeforces.com/contest/1610/problem/E .

(the obvious fix would be to take until the first dot, however is there any case where the problem ID consistently have dots inside? This is because of the competitive companion module is ambiguous...)

searleser97 commented 2 years ago

Could you clarify ?

What is what you expected ? and what is currently happening ?

user202729 commented 2 years ago

The problem name as sent by competitive companion is "E. AmShZ and G.O.A.T.".

Currently the parser creates file named E. AmShZ and G.O.A.T.cpp.

The expected is E.cpp.


Update: I updated some tool (not sure if it's this one or competitive companion) and the issue is gone (now all problems are named like A_ProblemName cpp, not A.cpp).

A little annoying, but not a bug.