--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: valid.js --- # Input ```jsx if (!true) { consequent; } true ? consequent : alternate; // https://github.com/rome/tools/issues/2999 if (!/^NCT/.test(input)) { messages.push("NCT Number must start with NCT"); } else if (!/^NCT\d{8}$/.test(input)) { messages.push("NCT Number must have exactly 8 digits after NCT"); } // https://github.com/rome/tools/issues/3141 function f() { return !!specs.variables ? specs.variables(props) : {}; } if(+5) {} else {} if(-5) {} else {} if(void f()) {} else {} ```