Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
matepek committed Jul 29, 2022
1 parent 74d01be commit 3ab96f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [4.2.4]

I won't even mention the change here.. Let's see how it works out.

## [4.2.3] - 2022-07-22

### Added
Expand Down
3 changes: 3 additions & 0 deletions src/util/ResolveRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ async function _mapAllStringsAsync(
return value;
case 'string': {
let prevMappedValue = await mapperFunc(value, parent);
/* this check is a hack. at this point we cannot assume that mapperFunc resolves variables only with '$'.
* but good enough for now. Should saves some resources. https://xkcd.com/1691/ */
if (typeof prevMappedValue === 'string' && prevMappedValue.indexOf('$') === -1) return prevMappedValue;
let nextMappedValue = await mapperFunc(prevMappedValue, parent);
while (prevMappedValue !== (nextMappedValue = await mapperFunc(prevMappedValue, parent))) {
prevMappedValue = nextMappedValue;
Expand Down

0 comments on commit 3ab96f3

Please sign in to comment.