Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const lgParserValidate = (name, body) => {
const text = ['#', name, '\n', body].join('');
const res = LGParser.TryParse(text);
return res.isValid ? '' : res.error.Message;
};