Commits

Anonymous committed 7445f67

Make test for "outside" references case insensitive.

Comments (0)

Files changed (1)

sphinx/environment.py

         for reference in self.document.traverse(nodes.reference):
             if reference.hasattr('refuri'):
                 refuri = reference['refuri']
-                if re.match(r"(?:http|https|ftp)://", refuri):
+                if re.match(r"(?i)(?:http|https|ftp)://", refuri):
                     classes = ("link", "outside")
                 else:
                     classes = ("link", "inside")