Skip to content

Commit 8b0de3c

Browse files
committed
2 parents 92c0526 + 6a6a724 commit 8b0de3c

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

db/Binary/bin.UPC.1.sg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ meta("format", "UPC");
66

77
function detect() {
88
if (Binary.compare("'UPC'")) {
9-
bDetected = true;
10-
}
9+
var frc = Binary.getString(13, 3).trim();
1110

11+
if (/^[A-Z]{3}$/.test(frc)) {
12+
if (X.isVerbose()) sOptions = frc;
13+
bDetected = true;
14+
}
15+
}
1216
return result();
1317
}

db/Binary/bin.UPF.1.sg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ meta("format", "UPF");
66

77
function detect() {
88
if (Binary.compare("'UPF'")) {
9-
bDetected = true;
10-
}
9+
var frf = Binary.getString(13, 3).trim();
1110

11+
if (/^[A-Z]{3}$/.test(frf)) {
12+
if (X.isVerbose()) sOptions = frf;
13+
bDetected = true;
14+
}
15+
}
1216
return result();
1317
}

db/Binary/bin.UPI.1.sg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ meta("format", "UPI");
66

77
function detect() {
88
if (Binary.compare("'UPI'")) {
9-
bDetected = true;
10-
}
9+
var fri = Binary.getString(13, 3).trim();
1110

11+
if (/^[A-Z]{3}$/.test(fri)) {
12+
if (X.isVerbose()) sOptions = fri;
13+
bDetected = true;
14+
}
15+
}
1216
return result();
1317
}

0 commit comments

Comments
 (0)