Update gist tag regex (#628)
This commit is contained in:
parent
746329d4ef
commit
ff9d2c7f7a
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class GistTag < LiquidTagBase
|
|||
end
|
||||
|
||||
def valid_link?(link)
|
||||
(link =~ /^https\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s$/)&.
|
||||
(link =~ /\Ahttps\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s\Z/)&.
|
||||
zero?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue