GT2/Ejectable/node_modules/compare-urls/index.js

11 lines
174 B
JavaScript

'use strict';
const normalizeUrl = require('normalize-url');
module.exports = (a, b) => {
if (a === b) {
return true;
}
return normalizeUrl(a) === normalizeUrl(b);
};