repost.js: Correcting case-handling for when there's just one match