Rename transformer constant in sanitizer (#30532)

pull/2867/head
Matt Jankowski 2024-10-04 04:29:23 -04:00 committed by GitHub
parent 160917e718
commit 82e7d53d54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class Sanitize
gemini gemini
).freeze ).freeze
CLASS_WHITELIST_TRANSFORMER = lambda do |env| ALLOWED_CLASS_TRANSFORMER = lambda do |env|
node = env[:node] node = env[:node]
class_list = node['class']&.split(/[\t\n\f\r ]/) class_list = node['class']&.split(/[\t\n\f\r ]/)
@ -84,7 +84,7 @@ class Sanitize
protocols: {}, protocols: {},
transformers: [ transformers: [
CLASS_WHITELIST_TRANSFORMER, ALLOWED_CLASS_TRANSFORMER,
TRANSLATE_TRANSFORMER, TRANSLATE_TRANSFORMER,
UNSUPPORTED_ELEMENTS_TRANSFORMER, UNSUPPORTED_ELEMENTS_TRANSFORMER,
UNSUPPORTED_HREF_TRANSFORMER, UNSUPPORTED_HREF_TRANSFORMER,