Commit 28d7325
committed
/deploy <package>: do not assume that
Apparently it is not, as I got this response for
git-for-windows/build-extra#455 (comment):
TypeError: Cannot read properties of undefined (reading 'startsWith')
Let's just do the same as for the `/mention` command: use regular
expressions. If we use only greedy expressions, we should not run into
the same issues as caused the scary StackOverflow outage described in
https://stackstatus.tumblr.com/post/147710624694/outage-postmortem-july-20-2016.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>req.body.comment.body is a string1 parent 1cf6d04 commit 28d7325
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments