From b11f6f266f143908502d9e990452951303d03667 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Tue, 24 Oct 2023 02:05:49 +0300 Subject: [PATCH] $mol_tree2_js_to_text NaN variations fix --- tree2/js/to/text/text.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree2/js/to/text/text.ts b/tree2/js/to/text/text.ts index 166ca910a71..505243c19b4 100644 --- a/tree2/js/to/text/text.ts +++ b/tree2/js/to/text/text.ts @@ -225,7 +225,7 @@ namespace $ { ] // number - if( input.type === 'NaN' || !Number.isNaN( Number( input.type ) ) ) return [ + if( input.type.match(/[+\-]?NaN/) || !Number.isNaN( Number( input.type ) ) ) return [ input.data( input.type ) ]