FIX: better error handling for theme import

This commit is contained in:
Sam
2017-04-17 16:55:53 -04:00
parent 5e3a0846f7
commit 86904e9cd6
5 changed files with 26 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ class RemoteTheme < ActiveRecord::Base
return unless hex
override = hex.downcase
if override !~ /[0-9a-f]{6}/
if override !~ /^[0-9a-f]{6}$/
override = nil
end
override