console.log(/.*/.test("asd")); // prints "false" console.log(/(.*)/.test("asd")); // prints "true"
When I run the exact same commands in the browser's console, they both print
true. Of course, since they're semantically the same.
What is happening?