Browse Source

Fix bug where any lines containing "Redirect" kick off the regex

pull/2/head
Luke Childs 9 years ago
parent
commit
acd7e49250
  1. 2
      src/htconvert.js

2
src/htconvert.js

@ -1,4 +1,4 @@
const redirectRegex = /(?:Redirect\s*(\d*)\s*)(\S*)(?:\s*)(\S*)/g;
const redirectRegex = /(?:Redirect[ \t]+(\d+)[ \t]+)(\S+)(?:[ \t]+)(\S+)/g;
const nginxPattern =
`location $2 {
return $1 $3;

Loading…
Cancel
Save