validating rules on run submit

This commit is contained in:
Sorrel Bri 2019-11-30 13:50:37 -08:00
parent 20601af746
commit a23671d3f9

View file

@ -18,7 +18,12 @@ const PhonoChangeApplier = () => {
const runChanges = e => {
e.preventDefault();
console.log('running...')
// validate rules
console.log(epochs.forEach(epoch => {
if (epoch.changes.find(change => !change.match(/>.*\/.*_/))) console.log({error: 'improper rule formatting'});
}))
// validate lexicon
}
return (