@infect/infect-rda-sample-importer
Version:
INFECT Sample Data Importer
22 lines (17 loc) • 469 B
JavaScript
import StringProcessor from './StringProcessor.js';
export default class SubstanceProcessor extends StringProcessor {
constructor({
name = 'Substance',
} = {}) {
super({
name,
fieldName: 'substance',
targetFieldName: 'compoundSubstanceId',
minLength: 1,
maxLength: 100,
trim: true,
regExp: /^[a-z0-9 -_]+$/i,
required: true,
});
}
}