Sha256: 4eee1b32c5e9ea43a0a242492e5c3d74ee4943e5f35ff16293b33c3446b7df40
Contents?: true
Size: 214 Bytes
Versions: 3
Compression:
Stored size: 214 Bytes
Contents
# frozen_string_literal: true module I18n::Tasks module HtmlKeys extend self HTML_KEY_PATTERN = /[.\-_]html\z/.freeze def html_key?(full_key) !!(full_key =~ HTML_KEY_PATTERN) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
i18n-tasks-0.9.5 | lib/i18n/tasks/html_keys.rb |
i18n-tasks-0.9.4 | lib/i18n/tasks/html_keys.rb |
i18n-tasks-0.9.3 | lib/i18n/tasks/html_keys.rb |