diff options
| author | Xu Cheng | 2016-07-13 18:28:40 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-07-13 19:11:47 +0800 |
| commit | 12c505c093523089710930ac2f393dcb2ac1ca6d (patch) | |
| tree | cebfe0ac58270da4523033b230c5e69e1e8651d4 /Library/Homebrew/dev-cmd | |
| parent | de1049f1f1237a31f8ac6a0b9b31ebdbc78030d4 (diff) | |
| download | brew-12c505c093523089710930ac2f393dcb2ac1ca6d.tar.bz2 | |
audit: avoid unnecessary regex
Regex is way slower than normal String#include? and String#start_with?.
Also, we often forget to proper escape them. So avoid using them if it
is not necessary.
Closes #503.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/dev-cmd')
0 files changed, 0 insertions, 0 deletions
