Closed ralphnajm closed 6 years ago
Fix for a bug that caused adding unnecessary number to links if longer version exists. e.g. creating 'hello-world' then 'hello' would cause 'hello' to have '-2' at the end.
I have done some light testing and seems to be working fine.
Looks pretty good, please add a test for this as well so we don't break this corner case again.
Okay I put that in, thanks for the good work @ralphnajm
Fix for a bug that caused adding unnecessary number to links if longer version exists. e.g. creating 'hello-world' then 'hello' would cause 'hello' to have '-2' at the end.
I have done some light testing and seems to be working fine.