Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Added and updated the solution, thanks for finding a breaking scenario. I've updated the description to assume there will be not chained mentions also e.g. @Joe@Anter.
Now add this test case:
"@Joe_was_here", ["Joe"]
expecting["Joe"]
I've updated the description with this clarified - thanks for your input.
Great idea thanks - test added.
It should be explained what can be in a username: ascii letters + digits only? (
Abc123
) Any order? (123abc
) Dashes allowed? (abc-123
) Underscores? (abc_123
) Unicode? (战神
)should add some edge cases, like:
"@Joker said", ["Jo"]
expecting[]
I'm trying to improve it to be up to standard, if you have any feedback i'd be happy to hear it.
deja-vu?
( JS ) Cleaning up the template a little would not have hurt. This looked done completely lovelessly.
Not in JS they weren't.
( JS )
It's too late for this kata ( it's retired ), but please note the difference between
assert
andassert.deepEqual
.assert
will accept any truthy value. That is not what you want.Random tests added
No random tests
Republished
Loading more items...