Skip to content

Commit 0ecacc1

Browse files
tombusbyfhemberger
authored andcommitted
Fix 'use' instead of 'using' grammar error (#1774)
locale/en/docs/guides/dont-block-the-event-loop.md contains a small grammar error in one of the sentences. This commit fixes it.
1 parent 24492d2 commit 0ecacc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locale/en/docs/guides/dont-block-the-event-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Whether or not your regular expression pattern is vulnerable (i.e. the regexp en
169169

170170
1. Avoid nested quantifiers like `(a+)*`. Node's regexp engine can handle some of these quickly, but others are vulnerable.
171171
2. Avoid OR's with overlapping clauses, like `(a|a)*`. Again, these are sometimes-fast.
172-
3. Avoid use backreferences, like `(a.*) \1`. No regexp engine can guarantee evaluating these in linear time.
172+
3. Avoid using backreferences, like `(a.*) \1`. No regexp engine can guarantee evaluating these in linear time.
173173
4. If you're doing a simple string match, use `indexOf` or the local equivalent. It will be cheaper and will never take more than `O(n)`.
174174

175175
If you aren't sure whether your regular expression is vulnerable, remember that Node generally doesn't have trouble reporting a *match* even for a vulnerable regexp and a long input string.

0 commit comments

Comments
 (0)