diff --git a/lib/prop_parser.js b/lib/prop_parser.js index 6ff68a7..41f4e7e 100644 --- a/lib/prop_parser.js +++ b/lib/prop_parser.js @@ -51,13 +51,11 @@ exports.parseKeywords = function ( prop ) prop = ''+( prop ); - // only perform parsing if the string contains a space - if ( / /.test( prop ) ) + // the keywords are all words, except for the last, which is the + // property name + if ( ( keywords = prop.split( /\s+/ ) ).length !== 1 ) { - // the keywords are all words, except for the last, which is the - // property name - keywords = prop.split( /\s+/ ); - name = keywords.pop(); + name = keywords.pop(); var i = keywords.length, keyword = '';