summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/controller/admin/uci.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/controller/admin/uci.lua')
-rw-r--r--src/ffluci/controller/admin/uci.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ffluci/controller/admin/uci.lua b/src/ffluci/controller/admin/uci.lua
index db70eb6a6..a1eb0d7d7 100644
--- a/src/ffluci/controller/admin/uci.lua
+++ b/src/ffluci/controller/admin/uci.lua
@@ -10,7 +10,7 @@ function action_apply()
-- Collect files to be applied
for i, line in ipairs(ffluci.util.split(changes)) do
- local r = line:match("^[^.]+")
+ local r = line:match("^-?([^.]+)")
if r then
apply[r] = true
end
@@ -41,7 +41,7 @@ function action_revert()
-- Collect files to be reverted
for i, line in ipairs(ffluci.util.split(changes)) do
- local r = line:match("^[^.]+")
+ local r = line:match("^-?([^.]+)")
if r then
revert[r] = true
end