source:
trip-planner-front/node_modules/dns-equal/index.js@
76712b2
Last change on this file since 76712b2 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 196 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | 'use strict' |
2 | ||
3 | var r = /[A-Z]/g | |
4 | ||
5 | module.exports = function (a, b) { | |
6 | a = a.replace(r, replacer) | |
7 | b = b.replace(r, replacer) | |
8 | return a === b | |
9 | } | |
10 | ||
11 | function replacer (m) { | |
12 | return m.toLowerCase() | |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.