Skip to content

Commit bef6e4f

Browse files
committed
Merge branch 'release/1.8.2'
2 parents e720ccd + 060e11f commit bef6e4f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
Changelog
22
=========
3+
## [1.8.2] - 2022-04-26
4+
5+
### Summary
6+
This release fixes another bug in the FTLD blanking logic parsing that caused
7+
an error for rules that contained both a multi-part question and a comma
8+
(i.e. "Question 3b,").
9+
10+
### Updated
11+
* Fix regular expression parsing for blanking rules in FTLD module to account for unusual punctuation in DED
12+
313
## [1.8.1] - 2021-11-04
414
### Summary
515
This release provides one major bug fix in the FTLD follow-up packet, updated

nacc/ftld/blanks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ def convert_rule_to_python(name: str, rule: str) -> bool:
8282
}
8383

8484
single_value = re.compile(
85-
r"Blank if( Question(s?))? *\w+ (?P<key>\w+)"
85+
r"Blank if( Question(s?))? *\w+(,?) (?P<key>\w+)(,?)"
8686
r" *(?P<eq>=|ne) (?P<value>\d+)([^-]|$)")
8787
range_values = re.compile(
88-
r"Blank if( Question(s?))? *\w+ (?P<key>\w+)"
88+
r"Blank if( Question(s?))? *\w+(,?) (?P<key>\w+)(,?)"
8989
r" *(?P<eq>=|ne) (?P<start>\d+)-(?P<stop>\d+)( |$)")
9090
blank_value = re.compile(
9191
r"Blank if( Question(s?))? *\w+ (?P<key>\w+) *(?P<eq>=|ne) blank")

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from setuptools import setup, find_packages
88

9-
VERSION = "1.8.1"
9+
VERSION = "1.8.2"
1010

1111
setup(
1212
name="nacculator",

0 commit comments

Comments
 (0)