From a454ae3a178827017de1327564a70d4bd694959e Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Wed, 1 Jan 2014 00:04:24 +0200 Subject: augeas backend: escape '_' correctly in a pattern --- acf2/persistence/backends/augeas.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'acf2/persistence') diff --git a/acf2/persistence/backends/augeas.lua b/acf2/persistence/backends/augeas.lua index f592477..d086ea4 100644 --- a/acf2/persistence/backends/augeas.lua +++ b/acf2/persistence/backends/augeas.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012-2013 Kaarle Ritvanen +Copyright (c) 2012-2014 Kaarle Ritvanen See LICENSE file for license details --]] @@ -73,7 +73,7 @@ local function conv_path(path) assert(type(comp) == 'number') res = append_pred(res, comp) else - assert(type(comp) == 'string' and comp:match('^[%w _-%.]+$')) + assert(type(comp) == 'string' and comp:match('^[%w %_-%.]+$')) res = append_key_pred(res, mode, comp) table.insert(keys, key(mode)) end -- cgit v1.2.3