OnepointConsultingLtd / themis

Business rules versioning and deployment manager. A fullstack-JS web app
MIT License
2 stars 0 forks source link

Rule validator external .jar file should support multiline text and inner doublequotes #21

Open sotiriosalpha opened 3 years ago

sotiriosalpha commented 3 years ago

Currently the external .jar file that performs the rule(s) validation cannot handle multi-line text and double-quotes existing in a rule's content. As a work-around we are removing any new-line characters and escaping double-quotes inside a rule's content. As a result, only one validation error is reported and when reported , the error-trace is always in line# 1 with col# accordingly

https://github.com/sotiriosalpha/rulesMS/blob/5354d907b317616f5f68bce25b66ae895d4473eb/server/api/functions/validate.js#L26-L34