Skip to content

Commit

Permalink
Fix text processing pipeline (#70)
Browse files Browse the repository at this point in the history
* Fix bug with text processing pipeline

Only the last processor is changing the result.

* Update CHANGELOG
  • Loading branch information
mixxorz authored Aug 25, 2020
1 parent 6b358a0 commit a176ccf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

* Fix text processing pipeline (#70)

## 1.1.0 (2020-08-24)

* Add "Unlock Window" option to context menu - SammyJames
Expand Down
3 changes: 2 additions & 1 deletion Glass/Modules/TextProcessing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function TP:ProcessText(text)

for _, processor in ipairs(TEXT_PROCESSORS) do
-- Prevent failing processors from bringing down the whole pipeline
local retOk, retVal = pcall(processor, text)
local retOk, retVal = pcall(processor, result)

if retOk then
result = retVal
end
Expand Down

0 comments on commit a176ccf

Please sign in to comment.