Improve c4a81fb941
.
We do want to recognize "0" as a number, even though it has "0" as a prefix.
This commit is contained in:
parent
c4a81fb941
commit
d73cb5f1a8
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ metaValueToJSON blockWriter inlineWriter (MetaMap metamap) = toJSON <$>
|
|||
metaValueToJSON blockWriter inlineWriter (MetaList xs) = toJSON <$>
|
||||
Traversable.mapM (metaValueToJSON blockWriter inlineWriter) xs
|
||||
metaValueToJSON _ _ (MetaBool b) = return $ toJSON b
|
||||
metaValueToJSON _ inlineWriter (MetaString s@('0':_)) =
|
||||
metaValueToJSON _ inlineWriter (MetaString s@('0':_:_)) =
|
||||
-- don't treat string with leading 0 as string (#5479)
|
||||
toJSON <$> inlineWriter (Builder.toList (Builder.text s))
|
||||
metaValueToJSON _ inlineWriter (MetaString s) =
|
||||
|
|
Loading…
Add table
Reference in a new issue