@brandur when I added this, the regex started failing. Changing `value =~ pattern` to `value.match` fixed the problem.