mastodon/config/initializers/regexp.rb

4 lines
133 B
Ruby

# frozen_string_literal: true
Regexp.timeout = ENV['REGEXP_TIMEOUT'].to_f if Regexp.respond_to?(:timeout=) && ENV['REGEXP_TIMEOUT']