From 63a9ce5872b9c1f7a690eefb02784a61fa2063ed Mon Sep 17 00:00:00 2001 From: Christopher Hirt Date: Thu, 17 Nov 2022 22:32:51 +0700 Subject: [PATCH] adjust audio input system regex to be more inclusive (#1604) Per a user's report, their audio input system was not properly detected in LF due to a too-strict regex. This loosens the regex a bit to allow LF to properly identify the field as an audio input system. With this change, a tag must have "-Zxxx" and end with "audio" Before this change, a non-standard input system tag like lwl-Zxxx-x-minority-audio is not detected as an audio input system (although FLEx handles it fine). After this change, this input system tag should work. --- src/angular-app/bellows/core/utility.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/angular-app/bellows/core/utility.service.ts b/src/angular-app/bellows/core/utility.service.ts index b8071f24c0..f54eaed002 100644 --- a/src/angular-app/bellows/core/utility.service.ts +++ b/src/angular-app/bellows/core/utility.service.ts @@ -24,7 +24,7 @@ export class UtilityService { } static isAudio(tag: string): boolean { - const tagAudioPattern = /^\w{2,3}-Zxxx-x(-\w{2,3})*-[aA][uU][dD][iI][oO]$/; + const tagAudioPattern = /^\w{2,3}-Zxxx-x-.*[aA][uU][dD][iI][oO]$/; return tagAudioPattern.test(tag); }