We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42629a0 commit 7b4180fCopy full SHA for 7b4180f
core/src/avm2/globals/flash/text/style_sheet.rs
@@ -46,6 +46,7 @@ pub fn inner_parse_color<'gc>(
46
let input = args.get_string(activation, 0);
47
48
if let Some(stripped) = input.strip_prefix(WStr::from_units(b"#")) {
49
+ let stripped = stripped.trim_end();
50
if stripped.len() <= 6 {
51
if let Ok(number) = u32::from_str_radix(&stripped.to_string(), 16) {
52
return Ok(number.into());
0 commit comments