tweaking/simplifying regex-literal-end pattern