Skip to content

Commit fef45af

Browse files
authored
correct minor error
1 parent 873e5f7 commit fef45af

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/06-regexp-boundary

1 file changed

+1
-1
lines changed

9-regular-expressions/06-regexp-boundary/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ So, it matches the pattern `pattern:\bHello\b`, because:
2727
2. Then matches the word `pattern:Hello`.
2828
3. Then the test `pattern:\b` matches again, as we're between `subject:o` and a space.
2929

30-
The pattern `pattern:\bJava\b` would also match. But not `pattern:\bHell\b` (because there's no word boundary after `l`) and not `Java!\b` (because the exclamation sign is not a wordly character `pattern:\w`, so there's no word boundary after it).
30+
The pattern `pattern:\bHello\b` would also match. But not `pattern:\bHell\b` (because there's no word boundary after `l`) and not `Java!\b` (because the exclamation sign is not a wordly character `pattern:\w`, so there's no word boundary after it).
3131

3232
```js run
3333
alert( "Hello, Java!".match(/\bHello\b/) ); // Hello

0 commit comments

Comments
 (0)