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

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to