From ee7e585121a86b96580aaed80f131fc69ce6ee9b Mon Sep 17 00:00:00 2001 From: nex3 Date: Sat, 5 May 2007 19:54:53 +0000 Subject: [PATCH] Fixing a Regex for compatibility with Oniguruma Regex engine. Thanks, Spongy! git-svn-id: svn://hamptoncatlin.com/haml/trunk@502 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/sass/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sass/engine.rb b/lib/sass/engine.rb index 4aeec5aa..8dbdbcad 100644 --- a/lib/sass/engine.rb +++ b/lib/sass/engine.rb @@ -40,7 +40,7 @@ module Sass DIRECTIVE_CHAR = ?@ # The regex that matches attributes of the form :name attr. - ATTRIBUTE = /:([^\s=:]+)\s*(=?)(?:\s|$)+(.*)/ + ATTRIBUTE = /:([^\s=:]+)\s*(=?)(?:\s+|$)(.*)/ # The regex that matches attributes of the form name: attr. ALTERNATE_ATTRIBUTE_SELECTOR = /^[^\s:]+:(\s+|$)/