Content deleted Content added
Testing |
Fixing errors |
||
Line 245:
firstSurname = d
for z, lastConnector in ipairs(connectors) do
if(fullNameTable[#fullNameTable-1] == lastConnector and (not(firstSurname == #fullNameTable-1))) then
lastSurname = #fullNameTable-1
end
if(fullNameTable[#fullNameTable-2] == lastConnector and (not(firstSurname == #fullNameTable-2))) then
lastSurname = #fullNameTable-2
end
Line 257:
if(not(lastSurname==0))then
table.insert(name.familyNames, table.concat(fullNameTable, " ", firstSurname, lastSurname-1))
table.insert(name.familyNames, table.concat(fullNameTable, " "
return name
else
table.insert(name.familyNames, table.concat(fullNametable, " "
end
else
|