Use non-capturing group in FXS regex

Replace the capturing group with a non-capturing group in the Microsoft Fax library detection regex (FXS(?:API|TIFF|CLNTR)). This avoids creating an unnecessary capture while preserving the original matching behavior (case-insensitive match for FXSAPI, FXSTIFF, FXSCLNTR).
This commit is contained in:
DosX 2026-05-25 12:49:35 +03:00
commit 87511f3e9f

View file

@ -5,7 +5,7 @@
meta("library", "Microsoft Fax");
function detect() {
if (PE.isLibraryPresentExp(/^FXS(API|TIFF|CLNTR)/i)) {
if (PE.isLibraryPresentExp(/^FXS(?:API|TIFF|CLNTR)/i)) {
bDetected = true;
}