summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-01-09 22:49:26 +0000
committerGreg Roach <fisharebest@gmail.com>2014-01-09 22:49:26 +0000
commite1dbda543e5ec1c7e608eb489d98c5da1d380aac (patch)
tree5641a3ebf2d0cab730fc80bd18130c4d7d2c3a42
parent607e37e4c2ad5d345574440eab493bb06e680797 (diff)
downloadwebtrees-e1dbda543e5ec1c7e608eb489d98c5da1d380aac.tar.gz
webtrees-e1dbda543e5ec1c7e608eb489d98c5da1d380aac.tar.bz2
webtrees-e1dbda543e5ec1c7e608eb489d98c5da1d380aac.zip
Batch update - name fix does not fix _HEB names
-rw-r--r--modules_v3/batch_update/plugins/name_format.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules_v3/batch_update/plugins/name_format.php b/modules_v3/batch_update/plugins/name_format.php
index f6d9f95205..b710913740 100644
--- a/modules_v3/batch_update/plugins/name_format.php
+++ b/modules_v3/batch_update/plugins/name_format.php
@@ -34,15 +34,15 @@ class name_format_bu_plugin extends base_plugin {
static function doesRecordNeedUpdate($xref, $gedrec) {
return
- preg_match('/^(?:1 NAME|2 _MARNM|2 _AKA) [^\/\n]*\/[^\/\n]*$/m', $gedrec) ||
- preg_match('/^(?:1 NAME|2 _MARNM|2 _AKA) [^\/\n]*[^\/ ]\//m', $gedrec);
+ preg_match('/^(?:1 NAME|2 (?:FONE|ROMN|_MARNM|_AKA|_HEB)) [^\/\n]*\/[^\/\n]*$/m', $gedrec) ||
+ preg_match('/^(?:1 NAME|2 (?:FONE|ROMN|_MARNM|_AKA|_HEB)) [^\/\n]*[^\/ ]\//m', $gedrec);
}
static function updateRecord($xref, $gedrec) {
return preg_replace(
array(
- '/^((?:1 NAME|2 _MARNM|2 _AKA) [^\/\n]*\/[^\/\n]*)$/m',
- '/^((?:1 NAME|2 _MARNM|2 _AKA) [^\/\n]*[^\/ ])(\/)/m'
+ '/^((?:1 NAME|2 (?:FONE|ROMN|_MARNM|_AKA|_HEB)) [^\/\n]*\/[^\/\n]*)$/m',
+ '/^((?:1 NAME|2 (?:FONE|ROMN|_MARNM|_AKA|_HEB)) [^\/\n]*[^\/ ])(\/)/m'
),
array(
'$1/',