validating rules on run submit
This commit is contained in:
parent
20601af746
commit
a23671d3f9
1 changed files with 6 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue