Modify gist tag regex (#585)
This commit is contained in:
parent
1a77a6b0ed
commit
dcb73a7009
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 =~ /^https\:\/\/gist\.github\.com\/([a-zA-Z0-9\-]){1,39}\/([a-zA-Z0-9]){32}\s$/)&.
|
||||
zero?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue