vgwort 0.4.3: Do not store Zählmarkencode with ; at the end

This commit is contained in:
onli 2020-09-23 21:52:46 +02:00
parent 8968920da2
commit afb90f5e94
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Version 0.4.3:
==============
- Do not add ; when storing private Zählmarken code
Version 0.4.2:
==============
- Adapt "csv" parser for new zählmarken file

View file

@ -16,7 +16,7 @@ class serendipity_event_vgwort extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_VGWORT_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('version', '0.4.2');
$propbag->add('version', '0.4.3');
$propbag->add('requirements', array(
'serendipity' => '2.2.1'
));
@ -83,7 +83,7 @@ class serendipity_event_vgwort extends serendipity_event {
if ($counterPublic[1]) {
$publicCounters[] = $counterPublic[1];
}
preg_match('@;Privater Identifikationscode:;(.*);?@', $line, $counterPrivate);
preg_match('@;Privater Identifikationscode:;([^;]*);?@', $line, $counterPrivate);
if ($counterPrivate) {
$privateCounters[] = $counterPrivate[1];
}