source: frontend/node_modules/bonjour-service/dist/lib/utils/dns-equal.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 443 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.default = dnsEqual;
4const capitalLetterRegex = /[A-Z]/g;
5function toLowerCase(input) {
6 return input.toLowerCase();
7}
8function dnsEqual(a, b) {
9 const aFormatted = a.replace(capitalLetterRegex, toLowerCase);
10 const bFormatted = b.replace(capitalLetterRegex, toLowerCase);
11 return aFormatted === bFormatted;
12}
13//# sourceMappingURL=dns-equal.js.map
Note: See TracBrowser for help on using the repository browser.