diff --git a/CHANGELOG.md b/CHANGELOG.md index 1306b20..8551beb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased - client: Ignore messages other than UTF-8 +- parser: Allow IDs only with hexadecimal values ## 0.8.0 - 2017-10-02 - parser: Merged function 'parse_aprs' and 'parse_ogn_beacon' to 'parse' diff --git a/ogn/parser/pattern.py b/ogn/parser/pattern.py index 49a9c6c..ea36114 100644 --- a/ogn/parser/pattern.py +++ b/ogn/parser/pattern.py @@ -11,7 +11,7 @@ PATTERN_NAVITER_BEACON = re.compile(""" """, re.VERBOSE | re.MULTILINE) PATTERN_TRACKER_BEACON_POSITION = re.compile(""" - id(?P
[0-9A-F]{2})(?P[0-9A-F]{6}?)\s? + id(?P
[\dA-F]{2})(?P[\dA-F]{6}?)\s? (?:(?P[+-]\d+?)fpm\s)? (?:(?P[+-][\d.]+?)rot\s)? (?:FL(?P[\d.]+)\s)? @@ -114,7 +114,7 @@ PATTERN_RECEIVER_BEACON = re.compile(r""" PATTERN_AIRCRAFT_BEACON = re.compile(r""" - id(?P
[0-9A-F]{2})(?P[0-9A-F]{6}?)\s? + id(?P
[\dA-F]{2})(?P[\dA-F]{6}?)\s? (?:(?P[+-]\d+?)fpm\s)? (?:(?P[+-][\d.]+?)rot\s)? (?:FL(?P[\d.]+)\s)?