Merge pull request #600 from Ayashiihito/master
fixed some typos in 08-regexp-greedy-and-lazy and 1-xmlhttprequest
This commit is contained in:
commit
71835ff890
2 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ Complex regular expressions are hard to optimize, so the search may work exactly
|
|||
|
||||
## Alternative approach
|
||||
|
||||
With regexps, there's often more then one way to do the same thing.
|
||||
With regexps, there's often more than one way to do the same thing.
|
||||
|
||||
In our case we can find quoted strings without lazy mode using the regexp `pattern:"[^"]+"`:
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ There are 3 methods for HTTP-headers:
|
|||
`setRequestHeader(name, value)`
|
||||
: Sets the request header with the given `name` and `value`.
|
||||
|
||||
Например:
|
||||
For instance:
|
||||
|
||||
```js
|
||||
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue