fix(plex): Adjust input validation for comma separated list (#3430)
This commit is contained in:
@@ -1,15 +1,25 @@
|
||||
# Input Validation
|
||||
|
||||
**`Advertise IP`**
|
||||
|
||||
Accepts:
|
||||
|
||||
- `http://` or `https://`
|
||||
- IP or DNS host
|
||||
- Port is optional
|
||||
- `,` Separated
|
||||
|
||||
Accepted formats are:
|
||||
|
||||
- `https://192.168.1.100:32400`
|
||||
- `https://192.168.1.100:32400`
|
||||
- `http://dnsname:32400`
|
||||
- `https://dnsname:32400`
|
||||
- `http://dnshost:32400`
|
||||
- `https://dnshost:32400`
|
||||
- `https://dnshost`
|
||||
- `https://dnshost,http://192.168.1.100:32400`
|
||||
|
||||
Regex used to match this: `^http(s)?:\/\/.*:\d*$`
|
||||
You can try live [here](https://regex101.com/r/3ehGWY/1)
|
||||
Regex used to match this: `^(http(s)?:\/\/([a-z0-9.]*)(:\d{0,5})?,?)*$`
|
||||
You can try live [here](https://regex101.com/r/9GBtUh/1)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user