Skip to content

Commit 10624d6

Browse files
authored
fix(diff): Fix diff-detection for "dirty" versions (#91)
1 parent 5254f71 commit 10624d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bo4e_cli/diff/diff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
String,
2323
TypeBase,
2424
)
25+
from bo4e_cli.models.version import REGEX_VERSION
2526

2627
logger = logging.getLogger(__name__)
2728

28-
REGEX_IGNORE_VERSION = re.compile(r"v\d+\.\d+\.\d+(-rc\d+)?")
29+
REGEX_IGNORE_VERSION = re.compile(REGEX_VERSION.pattern[1:-1])
2930

3031

3132
def _diff_type_base(schema_old: TypeBase, schema_new: TypeBase, old_trace: str, new_trace: str) -> Iterable[Change]:

0 commit comments

Comments
 (0)