[pacman-dev] [PATCH 1/6] Replacements refactor: extract check_literal()