Skip to content

Commit 57123bc

Browse files
committed
doc: enhance Buffer() grep regexp in Porting
1 parent d4e2f27 commit 57123bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Porting-Buffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
### Finding problematic bits of code using grep
1111

12-
Just run `grep -nrE '[^s]Buffer\s*\(' --exclude-dir node_modules`.
12+
Just run `grep -nrE '[^a-zA-Z](Slow)?Buffer\s*\(' --exclude-dir node_modules`.
1313

1414
It will find all the potentially unsafe places in your own code (with some considerably unlikely
1515
exceptions).

0 commit comments

Comments
 (0)