mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '1.8'
This commit is contained in:
commit
71dd5f6a3a
1
CHANGES
1
CHANGES
@ -213,6 +213,7 @@ Bugs fixed
|
||||
* #5928: KeyError: 'DOCUTILSCONFIG' when running build
|
||||
* #5936: LaTeX: PDF build broken by inclusion of image taller than page height
|
||||
in an admonition
|
||||
* #5231: "make html" does not read and build "po" files in "locale" dir
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
import re
|
||||
|
||||
from sphinx.util.osutil import canon_path
|
||||
|
||||
if False:
|
||||
# For type annotation
|
||||
from typing import Callable, Dict, List, Match, Pattern # NOQA
|
||||
@ -85,6 +87,7 @@ class Matcher:
|
||||
|
||||
def match(self, string):
|
||||
# type: (str) -> bool
|
||||
string = canon_path(string)
|
||||
return any(pat(string) for pat in self.patterns)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user