UNPKG

gatsby

Version:
10 lines (9 loc) 342 B
"use strict"; exports.__esModule = true; exports.isNearMatch = isNearMatch; var _fastestLevenshtein = require("fastest-levenshtein"); function isNearMatch(fileName, configName, distance) { if (!fileName) return false; return (0, _fastestLevenshtein.distance)(fileName, configName) <= distance; } //# sourceMappingURL=is-near-match.js.map