[augeas-devel] Improving the properties lens, issues with empty values
Carlos Sanchez
carlos at apache.org
Sat Apr 7 09:09:05 UTC 2012
Hi,
I'm making a couple changes to the properties lens, but I'm struggling
to get empty values working
I've made a fork on github [1] with the tests [2] that currently fail
with something like
mykey=
A snippet of the lens:
let sepch = del /[ \t]*=[ \t]*/ "="
let value_to_eol = /[^ \t\n](.*[^ \t\n])?/
let entry = /[A-Za-z][A-Za-z0-9._]+/
let property = [ indent . key entry . sepch . store value_to_eol . eol ]
Any suggestions?
may need to reorganize it and change more than just value_to_eol?
Thanks in advance
[1] https://github.com/carlossg/augeas/blob/master/lenses/properties.aug
[2] https://github.com/carlossg/augeas/blob/master/lenses/tests/test_properties.aug
More information about the augeas-devel
mailing list