Skip to content

Commit

Permalink
lint: change constant name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 10, 2017
1 parent 4c15e29 commit 788a0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -22,7 +22,7 @@ var Url = url.Url
* @private
*/

var simplePathRegExp = /^(\/\/?(?!\/)[^?#\s]*)(\?[^#\s]*)?$/
var SIMPLE_PATH_REGEXP = /^(\/\/?(?!\/)[^?#\s]*)(\?[^#\s]*)?$/

/**
* Module exports.
Expand Down Expand Up @@ -103,7 +103,7 @@ function originalurl (req) {
function fastparse (str) {
// Try fast path regexp
// See: https://github.com/joyent/node/pull/7878
var simplePath = typeof str === 'string' && simplePathRegExp.exec(str)
var simplePath = typeof str === 'string' && SIMPLE_PATH_REGEXP.exec(str)

// Construct simple URL
if (simplePath) {
Expand Down

0 comments on commit 788a0cf

Please sign in to comment.