diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-05-04 08:19:48 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-05-04 08:19:48 +0100 |
| commit | cc9d82dcd79146562e46ba3333e2b1386156623b (patch) | |
| tree | 59957e16a11bb6e314daa2c137e3ffcbfe34aed8 | |
| parent | 0630f60543d81bf115c7c059664fd64eb48620ab (diff) | |
| download | webtrees-cc9d82dcd79146562e46ba3333e2b1386156623b.tar.gz webtrees-cc9d82dcd79146562e46ba3333e2b1386156623b.tar.bz2 webtrees-cc9d82dcd79146562e46ba3333e2b1386156623b.zip | |
Fix: 'TYPE married' is now 'TYPE MARRIED'
| -rw-r--r-- | app/GedcomRecord.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php index 14e146555f..5e833b2c4d 100644 --- a/app/GedcomRecord.php +++ b/app/GedcomRecord.php @@ -1037,7 +1037,7 @@ class GedcomRecord if (preg_match_all('/^' . $level . ' (' . $fact_type . ') (.+)((\n[' . $sublevel . '-9].+)*)/m', $fact->gedcom(), $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { // Treat 1 NAME / 2 TYPE married the same as _MARNM - if ($match[1] === 'NAME' && str_contains($match[3], "\n2 TYPE married")) { + if ($match[1] === 'NAME' && str_contains(strtoupper($match[3]), "\n2 TYPE MARRIED")) { $this->addName('_MARNM', $match[2], $fact->gedcom()); } else { $this->addName($match[1], $match[2], $fact->gedcom()); |
