NET-Web-API-w-Angular/my-app/node_modules/bonjour-service/dist/lib/utils/dns-equal.js

13 lines
443 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const capitalLetterRegex = /[A-Z]/g;
function toLowerCase(input) {
return input.toLowerCase();
}
function dnsEqual(a, b) {
const aFormatted = a.replace(capitalLetterRegex, toLowerCase);
const bFormatted = b.replace(capitalLetterRegex, toLowerCase);
return aFormatted === bFormatted;
}
exports.default = dnsEqual;
//# sourceMappingURL=dns-equal.js.map