From 00a8e4659f98e9cc6e624ba1185e3c2e198363ea Mon Sep 17 00:00:00 2001 From: David Mejorado Date: Wed, 27 Jul 2022 12:05:27 -0700 Subject: [PATCH] fix: loosen up issue number regex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow up for #55. Asserting the start of the line gets in the way of matching issue ids in the issue buffer, which uses a border right next to the issue number. For example, the following comment in `GHOpenIssue 55`: ``` │#53 ``` --- lua/litee/gh/issues/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/litee/gh/issues/init.lua b/lua/litee/gh/issues/init.lua index 818f73f..58d81a6 100644 --- a/lua/litee/gh/issues/init.lua +++ b/lua/litee/gh/issues/init.lua @@ -10,7 +10,7 @@ local M = {} local function extract_issue_under_cursor() local current_word = vim.fn.expand('') - local issue_number = current_word:match('^#[0-9]+') + local issue_number = current_word:match('#[0-9]+') if issue_number == nil then return nil