import {ParamJsonImporter} from '../Param'; import {ComplexParamJsonExporterData} from '../../../../nodes/utils/io/IOController'; import {StringParam} from '../../../../params/String'; import {ParamType} from '../../../../poly/ParamType'; const LINE_BREAK_REGEXP = /\\n+/g; export class ParamStringJsonImporter extends ParamJsonImporter { add_main(data: ComplexParamJsonExporterData) { let raw_input = data['raw_input']; if (raw_input !== undefined) { // if (CoreType.isString(value)) { raw_input = raw_input.replace(LINE_BREAK_REGEXP, '\n'); this._param.set(raw_input); // } } } }