From 9d45743f069f632366f8e8679e6bf1711e87d63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sun, 10 Apr 2022 16:43:55 +0900 Subject: [PATCH] Added fb & WaldEnd hooks --- string.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/string.js b/string.js index 054691b..ade4f6e 100644 --- a/string.js +++ b/string.js @@ -46,6 +46,7 @@ module.exports = { var ctx = { "exitCurrentTag": exitCurrentTag , "stack": tokenStack + , "fd": ( x ) => ( tokenStack.empty() ? _fd_strOut : tokenStack.curr().fd )( x ) }; for( let i = 0; i < l; i ++ ) @@ -162,6 +163,8 @@ module.exports = { } } + _fineHandlers.WalkEnd && _fineHandlers.WalkEnd( ctx ); + return strOut; } }