--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: valid.js --- # Input ```jsx var regex = RegExp("x1f"); var regex = RegExp("["); var regex = new RegExp("x1f"); var regex = new RegExp("["); var regex = new RegExp("\\u{20}", "u"); var regex = new RegExp("\\u{1F}"); var regex = new RegExp("\\u{1F}", "g"); var regex = new RegExp("\\u{1F}", uflags); var regex = new RegExp("\t"); var regex = new RegExp("\n"); var regex = /\t/; var regex = /\n/; var regex = /x1f/; var regex = /\\x1f/; var regex = /\u{20}/u; var regex = /\u{1F}/; var regex = /\u{1F}/g; var regex = /\t/; var regex = /\n/; new (function foo() {})("\\x1f"); /[\u200E\u2066-\u2069]/gu; ```