diff --git a/js/animations/molang.js b/js/animations/molang.js index 431f7920a..f028448db 100644 --- a/js/animations/molang.js +++ b/js/animations/molang.js @@ -587,6 +587,7 @@ new ValidatorCheck('molang_syntax', { run() { let check = this; let keywords = ['return', 'continue', 'break']; + let two_expression_regex = (isApp || window.chrome) ? new RegExp('(?|]/)) { issues.push('Expression starts with an invalid character'); } - if ((clear_string.match(/[\w.]\s+[\w.]/) && !keywords.find(k => clear_string.includes(k))) || clear_string.match(/(? clear_string.includes(k))) || clear_string.match(/\)\(/) || (two_expression_regex && clear_string.match(two_expression_regex))) { issues.push('Two expressions with no operator in between'); } if (clear_string.match(/(^|[^a-z0-9_])[\d.]+[a-z_]+/i)) {