Skip to content

Commit

Permalink
$mol_tree2_js_to_text NaN variations fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 23, 2023
1 parent d23c26d commit b11f6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree2/js/to/text/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
]

Expand Down

0 comments on commit b11f6f2

Please sign in to comment.