fix(discussion/shared): anchor discussion url regexp
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
cd3b23bf36
commit
57b3e9091c
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/cli/cli/v2/internal/ghrepo"
|
||||
)
|
||||
|
||||
var discussionURLRE = regexp.MustCompile(`^/([^/]+)/([^/]+)/discussions/(\d+)`)
|
||||
var discussionURLRE = regexp.MustCompile(`^/([^/]+)/([^/]+)/discussions/(\d+)$`)
|
||||
|
||||
// ParseDiscussionArg parses a discussion number or URL from a command argument.
|
||||
// It returns the discussion number and, if the argument was a URL, a repo override.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue