Compile pattern before checking

You commented deleted line, you know?