From 2407545a234286f9e9f8d700fdd75f81c0a915b4 Mon Sep 17 00:00:00 2001 From: Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com> Date: Sat, 26 Oct 2024 15:23:30 +0200 Subject: [PATCH] fix type --- report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report.php b/report.php index 6662389..e4c9cb2 100644 --- a/report.php +++ b/report.php @@ -558,10 +558,10 @@ public function workaround_atto_font_size_issue(string $input): string { $pattern = '| ( # capturing group #1 for the "prefix" ]*style # opening a tag, any stuff before the style attribute - \s*=\s* # equal sign may be surrounded by white space + \s*=\s* # equal sign may be surrounded by whitespace ([\'"]) # opening quote may be single or double, capture #2 for closing quote [^\2]*font-size # arbitrary content before the font-size property - \s*:\s* # colon may be surrounded by white space + \s*:\s* # colon may be surrounded by whitespace ) # end of capturing group for the "prefix" ([.0-9]+) # capture the numeric value, group #3 \s*rem # only match for unit rem, other units do not seem to cause trouble