Fix single quotes mismatch.

This commit is contained in:
kosoado 2017-09-27 06:44:57 -05:00 committed by GitHub
parent 66145f5646
commit 4245cb4467

View file

@ -9,7 +9,7 @@ The caret `pattern:^` matches at the beginning of the text, and the dollar `patt
For instance, let's test if the text starts with `Mary`: For instance, let's test if the text starts with `Mary`:
```js run ```js run
let str1 = 'Mary had a little lamb, it's fleece was white as snow'; let str1 = "Mary had a little lamb, it's fleece was white as snow";
let str2 = 'Everywhere Mary went, the lamp was sure to go'; let str2 = 'Everywhere Mary went, the lamp was sure to go';
alert( /^Mary/.test(str1) ); // true alert( /^Mary/.test(str1) ); // true