discourse/config/initializers/100-regex-timeout.rb

5 lines
139 B
Ruby
Raw Normal View History

# frozen_string_literal: true
Regexp.timeout =
GlobalSetting.regex_timeout_seconds.to_i if GlobalSetting.regex_timeout_seconds.present?