Joe Cool
Joe Cool
This is matching 'dec1'.
The code currently tries to do this properly but only handles a very limited case `/^#+0.0E\+0$/` of formats, and it doesn't do the crazy thing with 0.0.
This is from the ECMA Office XML Part 1 specification: / If this symbol is preceded and followed by a number symbol (0, #, and ?), it is interpreted as...
In this case, this pattern is matching because fmt is set to `#??/??`: if((r = fmt.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))) { then `frac` is returning `[0, 1000, 81]` which is being split...
Here is another couple strange cases, allowed by Excel (but not by the documentation): ? "a" / "b" 8 ? "a" / "b" ?
And just when you thought it can't get any stranger, Excel also suppresses anything after the integer part if the fraction is not needed: format('# "h" ? "a" / "b"...
Yes that is the case as you said. This also applies to the "\r" format and also I'm checking all of the ones from valid.tsv and finding more errors. For...
I'm using Excel 2010.
Fix: t[14]= 'm/d/yyyy'
Here is documentation on this. Note there are other related issues mentioned here too: https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oe376/0e59abdb-7f4e-48fc-9b89-67832fa11789 Addl Changes: t[22]= 'm/d/yyyy h:mm' t[37]= '#,##0_);(#,##0)' t[38]= '#,##0_);[Red](#,##0)' t[39]= '#,##0.00_);(#,##0.00)' t[40]= '#,##0.00_);[Red](#,##0.00)' t[47]= 'mm:ss.0'...