Parse a RouterOS version out of a possibly-noisy string ("7.21.4 (long-term) 2026-04-21" → 7.21.4). Returns undefined when no major.minor shape is present.
"7.21.4 (long-term) 2026-04-21"
undefined
major.minor
Parse a RouterOS version out of a possibly-noisy string (
"7.21.4 (long-term) 2026-04-21"→ 7.21.4). Returnsundefinedwhen nomajor.minorshape is present.