fix(learn): Made the Escaping literal quotes channel accept the dot inside the double quotes too (#40465)
* made valid solution dot inside and dot outside quotes * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings.md Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
@ -35,7 +35,7 @@ assert(code.match(/\\"/g).length === 4 && code.match(/[^\\]"/g).length === 2);
|
|||||||
Variable myStr should contain the string: `I am a "double quoted" string inside "double quotes".`
|
Variable myStr should contain the string: `I am a "double quoted" string inside "double quotes".`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(myStr === 'I am a "double quoted" string inside "double quotes".');
|
assert(/I am a "double quoted" string inside "double quotes(\."|"\.)$/.test(myStr));
|
||||||
```
|
```
|
||||||
|
|
||||||
# --seed--
|
# --seed--
|
||||||
|
Reference in New Issue
Block a user