line_push/node_modules/webpack-hot-middleware/helpers.js
2022-07-18 02:50:52 +00:00

10 lines
168 B
JavaScript

var parse = require('url').parse;
exports.pathMatch = function (url, path) {
try {
return parse(url).pathname === path;
} catch (e) {
return false;
}
};