UNPKG

md-curcuma

Version:

A Typescript library for transporting and converting markdown and other data.

25 lines (24 loc) 792 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ArraySplit_Mapping = void 0; class ArraySplit_Mapping { constructor(properties) { this.properties = properties; } perform(mapping_properties) { let target_value = mapping_properties.source_value; if (target_value != null && target_value != undefined) { if (target_value.includes(",")) { console.log("Tags split: ".concat(target_value)); return target_value.split(",").map(function (item) { return item.trim(); }); } else { return [target_value]; } } else { return [target_value]; } } } exports.ArraySplit_Mapping = ArraySplit_Mapping;