From bb59845a026e088d0622ef8acbbc014663785d50 Mon Sep 17 00:00:00 2001 From: Oren Mazor <384279+orenmazor@users.noreply.github.com> Date: Sun, 29 Sep 2019 15:25:58 -0400 Subject: [PATCH 1/2] classes can have more things in them sometimes --- cssselect/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cssselect/parser.py b/cssselect/parser.py index 7125030..d05d9f7 100644 --- a/cssselect/parser.py +++ b/cssselect/parser.py @@ -379,7 +379,7 @@ def specificity(self): # foo.bar or .bar _class_re = re.compile( - r'^[ \t\r\n\f]*([a-zA-Z]*)\.([a-zA-Z][a-zA-Z0-9_-]*)[ \t\r\n\f]*$') + r'^[ \t\r\n\f]*([a-zA-Z\.]*)\.([a-zA-Z0-9][a-zA-Z0-9_-]*)[ \t\r\n\f]*\$*\%*$') def parse(css): From eac86656bd5fdcd5271365c8bf9323268532ea74 Mon Sep 17 00:00:00 2001 From: Oren Mazor <384279+orenmazor@users.noreply.github.com> Date: Sat, 7 Dec 2019 18:20:53 -0500 Subject: [PATCH 2/2] Update __init__.py --- cssselect/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cssselect/__init__.py b/cssselect/__init__.py index b41cef9..68ca76d 100644 --- a/cssselect/__init__.py +++ b/cssselect/__init__.py @@ -18,5 +18,5 @@ from cssselect.xpath import GenericTranslator, HTMLTranslator, ExpressionError -VERSION = '1.1.0' +VERSION = '1.1.1' __version__ = VERSION