Builtin ConverseJS on external XMPP server: new placeholders for the room name: CHANNEL_ID, CHANNEL_NAME.

This commit is contained in:
John Livingston
2021-08-04 00:22:19 +02:00
parent 98a9515a50
commit a3579abb81
7 changed files with 66 additions and 5 deletions

View File

@ -32,7 +32,7 @@ export async function diagConverse (test: string, { settingsManager }: RegisterS
result.messages.push('Missing chat room configuration')
isBuiltinError = true
} else if (
!/^(\w|{{VIDEO_UUID}})+@([a-z0-9.]+)+[a-z0-9]+$/
!/^(\w|{{(VIDEO_UUID|CHANNEL_ID|CHANNEL_NAME)}})+@([a-z0-9.]+)+[a-z0-9]+$/
.test(chatRoom)
) {
result.messages.push(