Skip to content
Myr

pref: remove unnecessary regexp for trust proxy

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 2bc734a · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:lib/utils.js+2 added-1 removed
226 unmodified lines
227 }228229 if (typeof val === 'string') {230 // Support comma-separated values231 val = val.split(/ *, */);231 val = val.split(',')232 .map(function (v) { return v.trim() })233 }234235 return proxyaddr.compile(val || []);236}
67 unmodified lines
modified:History.md+1 added
2 unmodified lines
34 * deps: accepts@~1.3.85 - deps: mime-types@~2.1.346 - deps: negotiator@0.6.37 * pref: remove unnecessary regexp for trust proxy894.17.2 / 2021-12-1610===================11
3507 unmodified lines