Skip to content

Commit 63a9ce5

Browse files
megahirtbilly clark
authored andcommitted
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.
1 parent cb3ce87 commit 63a9ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-app/bellows/core/utility.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class UtilityService {
2424
}
2525

2626
static isAudio(tag: string): boolean {
27-
const tagAudioPattern = /^\w{2,3}-Zxxx-x(-\w{2,3})*-[aA][uU][dD][iI][oO]$/;
27+
const tagAudioPattern = /^\w{2,3}-Zxxx-x-.*[aA][uU][dD][iI][oO]$/;
2828
return tagAudioPattern.test(tag);
2929
}
3030

0 commit comments

Comments
 (0)