Skip to content

Commit

Permalink
Merge branch 'release/1.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
s-emerson committed Apr 26, 2022
2 parents e720ccd + 060e11f commit bef6e4f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
Changelog
=========
## [1.8.2] - 2022-04-26

### Summary
This release fixes another bug in the FTLD blanking logic parsing that caused
an error for rules that contained both a multi-part question and a comma
(i.e. "Question 3b,").

### Updated
* Fix regular expression parsing for blanking rules in FTLD module to account for unusual punctuation in DED

## [1.8.1] - 2021-11-04
### Summary
This release provides one major bug fix in the FTLD follow-up packet, updated
Expand Down
4 changes: 2 additions & 2 deletions nacc/ftld/blanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def convert_rule_to_python(name: str, rule: str) -> bool:
}

single_value = re.compile(
r"Blank if( Question(s?))? *\w+ (?P<key>\w+)"
r"Blank if( Question(s?))? *\w+(,?) (?P<key>\w+)(,?)"
r" *(?P<eq>=|ne) (?P<value>\d+)([^-]|$)")
range_values = re.compile(
r"Blank if( Question(s?))? *\w+ (?P<key>\w+)"
r"Blank if( Question(s?))? *\w+(,?) (?P<key>\w+)(,?)"
r" *(?P<eq>=|ne) (?P<start>\d+)-(?P<stop>\d+)( |$)")
blank_value = re.compile(
r"Blank if( Question(s?))? *\w+ (?P<key>\w+) *(?P<eq>=|ne) blank")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from setuptools import setup, find_packages

VERSION = "1.8.1"
VERSION = "1.8.2"

setup(
name="nacculator",
Expand Down

0 comments on commit bef6e4f

Please sign in to comment.