UNPKG

metar-plot

Version:
27 lines (26 loc) 931 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVR = void 0; var RVR = /** @class */ (function () { function RVR(rvrString) { this.re = /(R\d{2})([L|R|C])?(\/)([P|M])?(\d+)(?:([V])([P|M])?(\d+))?([N|U|D])?(FT)?/g; var matches; while ((matches = this.re.exec(rvrString)) != null) { if (matches.index === this.re.lastIndex) { this.re.lastIndex++; } this.runway = matches[1]; this.direction = matches[2]; this.seperator = matches[3]; this.minIndicator = matches[4]; this.minValue = matches[5]; this.variableIndicator = matches[6]; this.maxIndicator = matches[7]; this.maxValue = matches[8]; this.trend = matches[9]; this.unitsOfMeasure = matches[10]; } } return RVR; }()); exports.RVR = RVR;