Add support for DME. Closes #114.

This commit is contained in:
Ian Renton
2026-06-23 06:38:41 +01:00
parent d4d43a43c8
commit 21a3ae70b5
4 changed files with 17 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ class Spot:
# If so, add that to the sig_refs list for this spot.
ref_regex = get_ref_regex_for_sig(found_sig)
if ref_regex:
ref_matches = re.finditer(r"(^|\W)" + found_sig + r"($|\W)(" + ref_regex + r")($|\W)", self.comment,
ref_matches = re.finditer(r"(^|\W)" + found_sig + r"([ -])(" + ref_regex + r")($|\W)", self.comment,
re.IGNORECASE)
for ref_match in ref_matches:
self._append_sig_ref_if_missing(SIGRef(id=ref_match.group(3).upper(), sig=found_sig))