Skip to content

Commit

Permalink
fix: Stricter condition before starting TOML table array check
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Apr 30, 2022
1 parent 55fefb0 commit 38160ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tomelr.el
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ Definition of a TOML Table Array (TTA):
- OBJECT is TTA if it is of type ((TT1) (TT2) ..) where each element is a
TOML Table (TT)."
(when (mapp object)
(when (and (not (stringp object))
(mapp object)) ;Because `mapp' is non-nil for strings too
(seq-every-p
(lambda (elem)
(tomelr--toml-table-p elem))
Expand Down

0 comments on commit 38160ef

Please sign in to comment.