Skip to content

Commit

Permalink
Hotfix tag form max reflexive size logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyHerself committed Nov 4, 2020
1 parent 3f1fad2 commit fea194f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.9.13]
### Changed
- Fix max reflexive size logic for non meta tags.

## [2.9.12]
### Changed
- Fix max reflexive size logic.
Expand Down
2 changes: 1 addition & 1 deletion reclaimer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__author__ = "Sigmmma"
# YYYY.MM.DD
__date__ = "2020.11.05"
__version__ = (2, 9, 12)
__version__ = (2, 9, 13)
__website__ = "https://github.com/Sigmmma/reclaimer"
__all__ = (
"animation", "bitmaps", "h2", "h3", "halo_script", "hek", "meta", "misc",
Expand Down
4 changes: 1 addition & 3 deletions reclaimer/field_type_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ def reflexive_parser(self, desc, node=None, parent=None, attr_index=None,
# (ex: bad hek+ extraction)
node[0] = node[1] = 0

elif node[0] > SANE_MAX_REFLEXIVE_COUNT or (
safe_mode and node[0] > s_desc.get(MAX, node[0])
):
elif node[0] > max(SANE_MAX_REFLEXIVE_COUNT, s_desc.get(MAX, 0)):
raise ValueError("Reflexive size is above highest allowed value.")

if not node[0]:
Expand Down

0 comments on commit fea194f

Please sign in to comment.