mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 08:05:46 +01:00
Fix CSS property completion issue.
--HG-- branch : key-processing
This commit is contained in:
@@ -331,9 +331,12 @@ var Styles = Module("Styles", {
|
|||||||
|
|
||||||
propertyIter: function (str, always) {
|
propertyIter: function (str, always) {
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (let match in this.propertyPattern.iterate(str))
|
for (let match in this.propertyPattern.iterate(str)) {
|
||||||
if (always && !i++ || match[0] && match.value)
|
if (match.value || always && match.name || match.wholeMatch === match.preSpace && always && !i++)
|
||||||
yield match;
|
yield match;
|
||||||
|
if (!/;/.test(match.postSpace))
|
||||||
|
break;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
propertyPattern: util.regexp(<![CDATA[
|
propertyPattern: util.regexp(<![CDATA[
|
||||||
|
|||||||
Reference in New Issue
Block a user