read-gedcom
Version:
Gedcom file reader
17 lines • 565 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsePlaceParts = void 0;
/**
* Parses a place value into parts.
* It essentially performs a split on the comma character.
* @param value The value to parse
* @category Value parsers
*/
const parsePlaceParts = (value) => {
if (value === null) {
return null;
}
return value.split(/, ?/); // Space is mandatory according to specification, but we still accept it if it's missing
};
exports.parsePlaceParts = parsePlaceParts;
//# sourceMappingURL=place.js.map