You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parttimejob/node_modules/bonjour-service/dist/lib/utils/dns-equal.js

13 lines
443 B

1 month ago
"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