diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-04-08 18:15:13 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-04-08 18:15:13 +0100 |
| commit | 76945aec94b352d9f6b5307267f0b085996f4896 (patch) | |
| tree | 4610e468d6fe6763e57c015101922edf21735b3d /lib | |
| parent | 16ab27a56d70e84e6c029cfdf77ea822a5a78da8 (diff) | |
Make style names in style mappings case insensitive
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-matchers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/document-matchers.js b/lib/document-matchers.js index bee2ac9..9b01dfd 100644 --- a/lib/document-matchers.js +++ b/lib/document-matchers.js @@ -24,7 +24,7 @@ function Matcher(elementType, options) { Matcher.prototype.matches = function(element) { return element.type === this._elementType && (this._styleId === undefined || element.styleId === this._styleId) && - (this._styleName === undefined || element.styleName === this._styleName) && + (this._styleName === undefined || (element.styleName && element.styleName.toUpperCase() === this._styleName.toUpperCase())) && (this._listIndex === undefined || isList(element, this._listIndex, this._listIsOrdered)); }; |
