remove null regex check - fixes #1222

This commit is contained in:
Sebastian McKenzie 2015-04-10 13:44:41 -07:00
parent 7de4718b27
commit 155c640409

View File

@ -57,7 +57,7 @@ export function evaluate(): { confident: boolean; value: any } {
}
if (path.isLiteral()) {
if (node.regex && node.value === null) {
if (node.regex) {
// we have a regex and we can't represent it natively
} else {
return node.value;