feat: support escaping the comma character in the API key. (#5088)
feat: support escaping the comma character in the API key.
This commit is contained in:
parent
5bfa13112a
commit
60680936d3
@ -206,8 +206,9 @@ const ProviderSetting: FC<Props> = ({ provider: _provider }) => {
|
||||
|
||||
if (apiKey.includes(',')) {
|
||||
const keys = apiKey
|
||||
.split(',')
|
||||
.split(/(?<!\\),/)
|
||||
.map((k) => k.trim())
|
||||
.map(k => k.replace(/\\,/g, ','))
|
||||
.filter((k) => k)
|
||||
|
||||
const result = await ApiCheckPopup.show({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user