This repository has been archived on 2026-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
todo/client/node_modules/bonjour-service/dist/lib/utils/dns-equal.js

13 lines
443 B
JavaScript
Raw Normal View History

2025-06-13 06:04:40 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = dnsEqual;
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;
}
//# sourceMappingURL=dns-equal.js.map