diff options
-rw-r--r-- | aconf/persistence/backends/augeas.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aconf/persistence/backends/augeas.lua b/aconf/persistence/backends/augeas.lua index 7ce68f0..eb954e8 100644 --- a/aconf/persistence/backends/augeas.lua +++ b/aconf/persistence/backends/augeas.lua @@ -72,6 +72,7 @@ local function conv_path(path) repeat local comp = path[1] + assert(tostring(comp):match('^[%w %_%-%.%@%#%$]+$')) if mode then if mode == 'enumerate' then @@ -79,7 +80,7 @@ local function conv_path(path) res = append_pred(res, comp) else local k = key(mode) - assert(k and type(comp) == 'string' and comp:match('^[%w %_%-%.%#]+$')) + assert(k and type(comp) == 'string') res = append_key_pred(res, k, comp) table.insert(keys, k) end |