You need to escape that period: `/\.json$/