From 847fbddaa3445defbe609ddc576c37034ca8f578 Mon Sep 17 00:00:00 2001 From: Andrew Cochrane Date: Sat, 29 Jul 2017 14:20:21 -0600 Subject: [PATCH 1/3] Fix regexpIsVideoPost --- const.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/const.go b/const.go index 772a32a..fbf7a32 100644 --- a/const.go +++ b/const.go @@ -61,7 +61,7 @@ var ( } // checks whether it's a video post. - regexpIsVideoPost = regexp.MustCompile(`/^(\/)(.+)(\/)(videos)$/`) + regexpIsVideoPost = regexp.MustCompile("/videos") // default facebook session. defaultSession = &Session{} From ed047b190fc047630ed5c7efc1a76cb166676edd Mon Sep 17 00:00:00 2001 From: Andrew Cochrane Date: Sat, 19 Aug 2017 11:44:05 -0600 Subject: [PATCH 2/3] add leading \ and trailing $ --- const.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/const.go b/const.go index fbf7a32..91e0216 100644 --- a/const.go +++ b/const.go @@ -61,7 +61,7 @@ var ( } // checks whether it's a video post. - regexpIsVideoPost = regexp.MustCompile("/videos") + regexpIsVideoPost = regexp.MustCompile("\\/videos$") // default facebook session. defaultSession = &Session{} From 1e3483dd6873974705aa1cc97f3367723941aaea Mon Sep 17 00:00:00 2001 From: Andrew Cochrane Date: Thu, 31 Aug 2017 20:03:22 -0600 Subject: [PATCH 3/3] put regexp in ` --- const.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/const.go b/const.go index 91e0216..056dce7 100644 --- a/const.go +++ b/const.go @@ -61,7 +61,7 @@ var ( } // checks whether it's a video post. - regexpIsVideoPost = regexp.MustCompile("\\/videos$") + regexpIsVideoPost = regexp.MustCompile(`\/videos$`) // default facebook session. defaultSession = &Session{}