Sha256: c0f387043c50d66fc55a5a263554ece5176d22297a4a3379aeadb06e6cf21695

Contents?: true

Size: 193 Bytes

Versions: 11

Compression:

Stored size: 193 Bytes

Contents

exports.pathMatch = pathMatch;

function pathMatch(url, path) {
  if (url == path) return true;
  var q = url.indexOf('?');
  if (q == -1) return false;
  return url.substring(0, q) == path;
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webpack_rails-2.0.1 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-2.0.0 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.3.1 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.3.0 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.2.2 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.2.1 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.2.0 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.1.1 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.1.0 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.0.1 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js
webpack_rails-1.0.0 lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js