neoclide / coc-lists

Common lists for coc.nvim
264 stars 24 forks source link

Fix grep issue with special string #140

Closed skysky97 closed 1 year ago

skysky97 commented 1 year ago

The grep uses pattern "/^(.+):(\d+):(\d+):(.*)/" to match lines. When line content contains strings like "0:0:0:0", match groups are wrong and Range.create throws exception. Using a non greedy version instead.