You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the strftime_format equals %Y-%m-%dT%H:%M:%S%:z the method to_momentjs returns %Y-%m-%[dT]%H:%M:%S%:z. Which is incorrect, because I don't want to have dT to be escaped. Whats the reson for the two regexes?
Method:
def to_momentjs
strftime_format.gsub(/\w[^.(!?%)\W]{1,}/, '[\0]').gsub(/%(\w|\-\w)/) do |match|
MOMENTJS_TRANSLATIONS[match]
end
end
When the strftime_format equals
%Y-%m-%dT%H:%M:%S%:zthe methodto_momentjsreturns%Y-%m-%[dT]%H:%M:%S%:z. Which is incorrect, because I don't want to havedTto be escaped. Whats the reson for the two regexes?Method:
File: https://github.com/sferik/rails_admin/blob/c9323f69ae60f14eb31fea62c05f5f0e55cbea34/lib/rails_admin/support/datetime.rb
Version: 1.3.0
The result is a broken
between ... andFilter.