Project

General

Profile

Feature #26552 » max-width-patch-v3.diff

Support min-width/min-height/max-width/max-height property - Go MAEDA, 2018-01-08 02:25

View differences:

lib/redmine/wiki_formatting/textile/redcloth3.rb (working copy)
atts
end
STYLES_RE = /^(color|width|height|border|background|padding|margin|font|text|float)(-[a-z]+)*:\s*((\d+%?|\d+px|\d+(\.\d+)?em|#[0-9a-f]+|[a-z]+)\s*)+$/i
STYLES_RE = /^(color|(min-|max-)?+(width|height)|border|background|padding|margin|font|text|float)(-[a-z]+)*:\s*((\d+%?|\d+px|\d+(\.\d+)?em|#[0-9a-f]+|[a-z]+)\s*)+$/i
def sanitize_styles(str)
styles = str.split(";").map(&:strip)
(3-3/5)