lib/html-conditional-comment/lexer.rb in html-conditional-comment-0.0.1 vs lib/html-conditional-comment/lexer.rb in html-conditional-comment-0.0.2

- old
+ new

@@ -23,11 +23,11 @@ FALSE = /false/i IF_STATEMENT = /if/i ENDIF_STATEMENT = /endif/i #Opening statement plus positive look ahead to avoid conflicts with other #comments - OPEN = /<!(\-\-)?\[(?=(end)?if)/ - CLOSE = /\](\-\-)?>/ + OPEN = /<!(\-\-)?\s*\[(?=(end)?if)/ + CLOSE = /\]\s*(\-\-)?>/ WHITE_SPACE = /\s+/ FEATURE = /[a-z]+/i VERSION_VECTOR = /\d+(\.[\d]+)?/ TOKENS = [