Permalink
Browse files

ENHANCE TRAILING SLASH REGEX

Replace the regular expression that checks for "bare" domains
with one that can detect bare domain URLs but allow regular URLs
that ab can use (e.g. flag http://somedomain.com and allow
http://somedomain.com/somefile.html).
  • Loading branch information...
1 parent c5d3789 commit f5de324c59beccf227444b0c7269c5dcd3f662de @cjbehm committed Aug 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 beeswithmachineguns/main.py
@@ -29,7 +29,7 @@
import sys
from optparse import OptionParser, OptionGroup
-NO_TRAILING_SLASH_REGEX = re.compile(r'^.*?\.\w+$')
+NO_TRAILING_SLASH_REGEX = re.compile(r'^https?://(\w+\.?)+$')
def parse_options():
"""

0 comments on commit f5de324

Please sign in to comment.