mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix 'sed' error in options.sh. v5.0.201 (#3891)
The `-` character, when placed in the middle of a regular expression, is interpreted as a range. It must be placed at the beginning or end to be interpreted as a literal character. --------- `TRANS_BY_GPT4` --------- Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
f1b419df4c
commit
0808be18ad
3 changed files with 3 additions and 2 deletions
|
@ -442,7 +442,7 @@ function parse_user_option_to_value_and_option() {
|
|||
case "$option" in
|
||||
-*=*)
|
||||
value=`echo "$option" | sed -e 's|[-_a-zA-Z0-9/]*=||'`
|
||||
option=`echo "$option" | sed -e 's|=[,-_a-zA-Z0-9/. +]*||'`
|
||||
option=`echo "$option" | sed -e 's|=[-_a-zA-Z0-9/. +,]*||'`
|
||||
;;
|
||||
*) value="" ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue