Commit 79b2db6
committed
fix: handle null regex match in eject script
line.match(/ .*/g)[0] crashed with TypeError when the regex had no
match and returned null. Added null-safe handling with optional
chaining to prevent the crash during eject.
Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Signed-off-by: Srikanth Patchava <srikanth.patchava@outlook.com>1 parent 7bf2579 commit 79b2db6
12 files changed
Lines changed: 1 addition & 1 deletion
File tree
- packages
- create-react-app
- react-scripts
- bin
- scripts
- tasks
File mode changed.
File mode changed.
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
0 commit comments