ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.75k stars 5.28k forks source link

fix 'sed' error in options.sh. v5.0.201 v6.0.103 #3891

Closed duiniuluantanqin closed 7 months ago

duiniuluantanqin commented 7 months ago

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

xiaozhihong commented 7 months ago

Before

image

After

image

It works well

xiaozhihong commented 7 months ago

The '-' symbol must be placed at the beginning or end. If it's in the middle, it will be interpreted as a range. For example, '0-9' is interpreted as '0123456789'.

TRANS_BY_GPT4