Length (and some other operators) should not include head/foot comments #1231

This commit is contained in:
Mike Farah
2022-05-31 16:28:53 +10:00
parent 70403375d7
commit 8d3be1a23c
15 changed files with 122 additions and 25 deletions

View File

@@ -1,2 +1,12 @@
a: mike
b: [t, f]
# --------------------------------------------------
# It's a test with comment
# --------------------------------------------------
test:
- name: a
- name: b
- name: c
groups:
- name: a
- name: b
- name: c
- name: c

View File

@@ -1,2 +1,5 @@
c:
d: hamster
# --------------------------------------------------
# It's a test with comment
# --------------------------------------------------
groups:
- name: d