line_push/node_modules/webpack-hot-middleware/helpers.js
2022-07-17 13:16:16 +08:00

10 lines
167 B
JavaScript

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