Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: retain const of INVALID_PATH_REGEX variable of _http_client.js
  • Loading branch information
BeniCheni committed Mar 7, 2019
commit 266f5a508d9ebd5d87a1a232f7ea48857a45a956
2 changes: 1 addition & 1 deletion lib/_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const {
const { validateTimerDuration } = require('internal/timers');
const is_reused_symbol = require('internal/freelist').symbols.is_reused_symbol;

var INVALID_PATH_REGEX = /[^\u0021-\u00ff]/;
const INVALID_PATH_REGEX = /[^\u0021-\u00ff]/;

function validateHost(host, name) {
if (host !== null && host !== undefined && typeof host !== 'string') {
Expand Down