Retired
Dodgy delete key (retired)
Loading description...
Regular Expressions
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai). Refer to this and this
"There will NOT be any stray span tags between any given pair" is good. Though there may still be other tags, or even other almost span closing tags within the text (eg.
</span
). If it's meant to be pretty easy, and the tests don't use such tricks, it might be good to add that to the description.The
<span>
tags in the description are not displayed.Fixed
Why the
<span>
tag?Why not the
<del>
tag? (You don't have to render that as strikethrough.)Or something like
<span class="delete">
so you can<style>
it with.delete { display: none }
.It reads as such bad HTML for such a good kata ..
Badly needs a test case for
<span>delete<nbsp;>me!</span>
, with a<
somewhere inbetween tags.Also, esp. for donaldsebleung, a test case with
[]
or()
inbetween the tags. (Donald, you know about.
, don't you?)And a test with
<span></span>
, without any text inbetween.Johan,
There is a generator, it produces very basic strings with only simple spans so it can be handled by a simple regex. This was supposed to be a white kata (author's rank). Let me know if you still think it should be updated for more complicated parsing.
Please do not close issues too early. My issue has not been addressed.
If this was intended to be an easy kata, the description should have specified it as an easy kata.
Instead, everything I wrote was legal according to the description. It just wasn't tested.
Making an easy kata can be more difficult than making a harder one, because you have to carefully specify what will and will not be tested, and then actually do that.
Needs random test cases
Duplicate issue.
This comment has been hidden.
Added.
Test suggestion: text with nested tags inside
<span>
elements, eg"Text<span> with <em>emphasis</em></span>"