Updated RegEx to utilize identity operator when checking for 0 to prevent falsy values evaluating to true.