Skip to content

Commit 266d3fd

Browse files
Clarify URL format in Regular Chatbot exercise's instructions.md (#2713)
* Clarify URL format in instructions.md Currently, the instructions say to get the URLs, but it doesn't specify what "URLs" are. (https://exercism.org/tracks/javascript/exercises/regular-chatbot is a valid URL, but this exercise does not test for such complicated URLs, and the reference solution in exemplar.js would not reject it.) It would be frustrating for a user to exert their effort trying to write a regex for URLs the exercise isn't testing for (especially if the tests were to reject a valid URL, though I haven't checked if they currently could). * [CI] Format code --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c692080 commit 266d3fd

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

exercises/concept/regular-chatbot/.docs/instructions.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ Example of Conversation:
6868
- **Chatbot**: Hey username, I would like to learn how to code in JavaScript, do you know any cool website where I could learn?
6969
- **User**: I learned a lot from [exercism.org](http://exercism.org)
7070
71-
Implement the function `getURL()` which is able to return an array with just the link of each website.
71+
Implement the function `getURL()` which is able to return an array with just the link of each website. Writing a regex to recognize any URL would be very complicated, but the Chatbot only needs to read simple URLs. For this exercise, a URL is any `"."`-delimited sequence of words.
7272
7373
```javascript
74-
getURL('I learned a lot from exercism.org');
75-
// => ["exercism.org"];
74+
getURL(
75+
'I learned a lot from exercism.org and developer.mozilla.org, but I found ts39.es very boring!',
76+
);
77+
// => ["exercism.org", "developer.mozilla.org", "ts39.es"];
7678
```
7779
7880
## Greet the user

0 commit comments

Comments
 (0)