aswi2020vldc-gitlab/templetes/node_modules/dns-equal/index.js @ 9bb1e829
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 |
}
|