Skip to content

Commit 76f0732

Browse files
authored
Merge pull request #2370 from vsemozhetbyt/patch-4
Fix typo in 9.8 task solution (Sets and ranges [...])
2 parents 985dedb + 4a3d842 commit 76f0732

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/08-regexp-character-sets-and-ranges/1-find-range-1

1 file changed

+1
-1
lines changed

9-regular-expressions/08-regexp-character-sets-and-ranges/1-find-range-1/solution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Answers: **no, yes**.
55
```js run
66
alert( "Java".match(/Java[^script]/) ); // null
77
```
8-
- Yes, because the part `pattern:[^script]` part matches the character `"S"`. It's not one of `pattern:script`. As the regexp is case-sensitive (no `pattern:i` flag), it treats `"S"` as a different character from `"s"`.
8+
- Yes, because the `pattern:[^script]` part matches the character `"S"`. It's not one of `pattern:script`. As the regexp is case-sensitive (no `pattern:i` flag), it treats `"S"` as a different character from `"s"`.
99
1010
```js run
1111
alert( "JavaScript".match(/Java[^script]/) ); // "JavaS"

0 commit comments

Comments
 (0)