Make media file extensions not be case sensitive
I had a .PNG file that caused me to spend an hour and a half troubleshooting...
This commit is contained in:
parent
df7ff0fa3e
commit
939b1879b3
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ type Macro struct {
|
||||||
|
|
||||||
var validURLCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;="
|
var validURLCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;="
|
||||||
var autolinkProtocols = regexp.MustCompile(`^(https?|ftp|file)$`)
|
var autolinkProtocols = regexp.MustCompile(`^(https?|ftp|file)$`)
|
||||||
var imageExtensionRegexp = regexp.MustCompile(`^[.](png|gif|jpe?g|svg|tiff?)$`)
|
var imageExtensionRegexp = regexp.MustCompile(`(?i)^[.](png|gif|jpe?g|svg|tiff?)$`)
|
||||||
var videoExtensionRegexp = regexp.MustCompile(`^[.](webm|mp4)$`)
|
var videoExtensionRegexp = regexp.MustCompile(`(?i)^[.](webm|mp4)$`)
|
||||||
|
|
||||||
var subScriptSuperScriptRegexp = regexp.MustCompile(`^([_^]){([^{}]+?)}`)
|
var subScriptSuperScriptRegexp = regexp.MustCompile(`^([_^]){([^{}]+?)}`)
|
||||||
var timestampRegexp = regexp.MustCompile(`^<(\d{4}-\d{2}-\d{2})( [A-Za-z]+)?( \d{2}:\d{2})?( \+\d+[dwmy])?>`)
|
var timestampRegexp = regexp.MustCompile(`^<(\d{4}-\d{2}-\d{2})( [A-Za-z]+)?( \d{2}:\d{2})?( \+\d+[dwmy])?>`)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue