2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 13:47:16 +00:00

remove ancient comment

This commit is contained in:
2025-08-26 20:16:00 +01:00
parent 53e03d5462
commit 0cf76e8c6b

View File

@@ -1655,16 +1655,6 @@ class LoadingSurvex:
It _should_ recognise a non-numeric survey station ID, but currently doesn't.
Valid QM types are [A-DvVxX?] A-D, V for Vertical, X for horrible and ? for unknown
"""
# rx_qm : r"(?i)^\s*QM(\d+)\s+?(.+)\s+([\w\-\_]+)(\.([\w\.\-]+)?)\s+(([\w\-]+)\.([\w\.\-]+)|\-)\s+(.+)$)
# This regex parses strings that start with "QM" followed by digits, then extracts several structured parts:
# (?i) : Case-insensitive matching
# ^\s* : Start of line, optional leading whitespace
# QM(\d+) : "QM" followed by a digit sequence (capture group 1)
# \s+?(.+) : Minimal spaces, then a descriptive text (capture group 2)
# \s+([\w\-_]+) : identifier prefix with word characters, hyphen or underscore (capture group 3)
# (\.([\w.\-]+)?) : identifier starting with a dot (capture group 4 and 5)
# \s+(([\w\-]+)\.([\w.\-]+)|\-?) : Either a pair of identifiers separated by a dot or an optional single dash (capture group 6, with 7 & 8 as subgroups)
# \s+(.+)$ : Remaining text at the end (e.g., comments or summary) (capture group 9)
qmline = self.rx_qm.match(comment)
if qmline:
self.LoadSurvexQM(survexblock, qmline)