Skip to content

Commit 930b497

Browse files
committed
v1.0.1
1 parent 19d11d3 commit 930b497

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Versioning guidelines for SemVer can be found at: https://semver.org/
99

1010
(none)
1111

12+
=== Version/Release 1.0.1 ===
13+
MAINTENANCE RELEASE.
14+
15+
- [2020.12.05; Maikuolan]: Fixed some small code-style issues.
16+
17+
Caleb M (Maikuolan),
18+
December 5, 2020.
19+
1220
=== Version/Release 1.0.0 ===
1321
MAJOR RELEASE (BACKWARDS COMPATIBLE).
1422

SigTool.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* SigTool v1.0.0 (last modified: 2020.03.07).
3+
* SigTool v1.0.1 (last modified: 2020.12.05).
44
* Generates signatures for phpMussel using main.cvd and daily.cvd from ClamAV.
55
*
66
* Package location: GitHub <https://github.com/phpMussel/SigTool>.
@@ -12,10 +12,10 @@
1212
class SigTool extends \Maikuolan\Common\YAML
1313
{
1414
/** Script version. */
15-
public $Ver = '1.0.0';
15+
public $Ver = '1.0.1';
1616

1717
/** Last modified date. */
18-
public $Modified = '2020.03.07';
18+
public $Modified = '2020.12.05';
1919

2020
/** Script user agent. */
2121
public $UA = 'SigTool v%s (https://github.com/phpMussel/SigTool)';
@@ -235,7 +235,6 @@ public function fixPath($Path)
235235
{
236236
return str_replace(['\/', '\\', '/\\'], '/', $Path);
237237
}
238-
239238
}
240239

241240
/** Fetch arguments. */
@@ -568,7 +567,6 @@ public function fixPath($Path)
568567
echo unlink($SigTool->fixPath(__DIR__ . '/' . $File)) ? $L10N['Done'] : $L10N['Failed'];
569568
}
570569
}
571-
572570
}
573571

574572
/** NDB sequence. */
@@ -744,9 +742,7 @@ public function fixPath($Path)
744742
/** Normalise to lower-case. */
745743
$SigHex = strtolower($SigHex);
746744

747-
/** Assign to the appropriate signature file (regex). */
748745
if (preg_match('/[^a-f\d*]/i', $SigHex)) {
749-
750746
/** Convert from ClamAV's pattern syntax to PCRE syntax. */
751747
$SigHex = preg_replace([
752748
'~^.*\{(?:-?\d{4,}|\d{4,}-)\}.*$~',
@@ -859,10 +855,7 @@ function ($Matches) use ($Char, $Length) {
859855
if (!empty($CorrelationsRegex[$SigType])) {
860856
$FileSets[$CorrelationsRegex[$SigType]] .= $ThisLine;
861857
}
862-
863-
/** Assign to the appropriate signature file (non-regex). */
864858
} else {
865-
866859
/** Wildcards and other tricks. */
867860
$SigHex = str_replace('*', '>', $SigHex);
868861

0 commit comments

Comments
 (0)