Fix for "name" handling in match(); Fixes #37

This commit is contained in:
Vadim A. Misbakh-Soloviov 2015-04-13 21:49:18 +05:00
parent bc23cd4f78
commit a64b0aaf5f

View File

@ -155,7 +155,7 @@ local function select(self, s)
start, pos, switch, type, name, eq, quote = string.find(part,
"(%(?%)?)" .. -- switch = a possible ( or ) switching the filter on or off
"([:%[#.]?)" .. -- type = a possible :, [, #, or .
"(%w+)" .. -- name = 1 or more alfanumeric chars
"([%w-_\\]+)" .. -- name = 1 or more alfanumeric chars (+ hyphen, reverse slash and uderscore)
"([|%*~%$!%^]?=?)" .. -- eq = a possible |=, *=, ~=, $=, !=, ^=, or =
"(['\"]?)", -- quote = a ' or " delimiting a possible attribute value
pos + 1