metar-decoder
Version:
Convert METAR weather reports to JavaScript objects
15 lines (14 loc) • 397 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.matchExact = exports.inHgtoHpa = void 0;
function inHgtoHpa(ingh) {
return Math.floor(33.865 * ingh);
}
exports.inHgtoHpa = inHgtoHpa;
function matchExact(r, str) {
const match = str.match(r);
if (!match)
return false;
return match && str === match[0];
}
exports.matchExact = matchExact;
;