Changeset

11307:f2e276bb4ef8

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 25 Jan 2021 21:26:45 +0100
parents 11305:cd8516a77255 (current diff) 11306:5798ab735619 (diff)
children 11308:5d4d90d1eabb
files util/interpolation.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/interpolation.lua	Sun Jan 24 16:12:53 2021 +0100
+++ b/util/interpolation.lua	Mon Jan 25 21:26:45 2021 +0100
@@ -43,11 +43,11 @@
 				end
 			end
 			if funcs then
-				while value ~= nil and opt == '|' do
+				while opt == '|' do
 					local f;
 					f, raw, opt, e = s_match(block, "^([%a_][%w_.]*)(!?)(%p?)()", e);
 					f = funcs[f];
-					if f then value = f(value); end
+					if value ~= nil and f then value = f(value); end
 				end
 			end
 			if opt == '#' or opt == '%' then