From 664b9385107575c25a14aecc777c1d360d020382 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 9 Mar 2021 12:56:25 +0000 Subject: [PATCH] [Minor] Css: Fix exponent parsing --- src/libserver/css/css_tokeniser.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libserver/css/css_tokeniser.cxx b/src/libserver/css/css_tokeniser.cxx index 1d6e89df7..d836f420a 100644 --- a/src/libserver/css/css_tokeniser.cxx +++ b/src/libserver/css/css_tokeniser.cxx @@ -337,6 +337,14 @@ auto css_tokeniser::consume_number() -> struct css_parser_token if (next_c == '+' || next_c == '-') { i ++; } + else if (!g_ascii_isdigit(next_c)) { + /* Not an exponent */ + break; + } + } + else { + /* Not an exponent */ + break; } } else { -- 2.39.5