diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-13 13:05:04 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-13 13:05:04 -0400 |
| commit | ed55fc2c7ab8fb921a95a5c27d9c8dc43b9c6eb9 (patch) | |
| tree | 5b4b634ee93fa85c1a22f2c851f5b717205944b4 /examples | |
| parent | 019e7793fe05373e754b3bc4307f6ba795fb53ad (diff) | |
Minor cleanup
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ini.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ini.tm b/examples/ini.tm index b2e59986..50668793 100644 --- a/examples/ini.tm +++ b/examples/ini.tm @@ -18,7 +18,7 @@ func parse_ini(path:Path)->{Text:{Text:Text}}: for line in text:lines(): line = line:trim() skip if line:starts_with(";") or line:starts_with("#") - if line:matches($/{0+space}[{..}]/): + if line:matches($/[?]/): section_name := line:replace($/[?]/, "\1"):trim():lower() current_section = @{:Text:Text} sections:set(section_name, current_section) |
