diff options
| -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()); |
