mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Fix the string CSS regexps so that they correctly handle escaped quotes.
This commit is contained in:
parent
0a3486259b
commit
cbcbe3a3ee
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ module Sass
|
|||
ESCAPE = /#{UNICODE}|\\[ -~\200-\377]/
|
||||
NMSTART = /[a-z]|#{NONASCII}|#{ESCAPE}/i
|
||||
NMCHAR = /[a-z0-9_-]|#{NONASCII}|#{ESCAPE}/i
|
||||
STRING1 = /\"([\t !#%$&(-~]|\\#{NL}|\'|#{NONASCII}|#{ESCAPE})*\"/
|
||||
STRING2 = /\'([\t !#%$&(-~]|\\#{NL}|\"|#{NONASCII}|#{ESCAPE})*\'/
|
||||
STRING1 = /\"([^\n\r\f\\"]|\\#{NL}|#{ESCAPE})*\"/
|
||||
STRING2 = /\'([^\n\r\f\\']|\\#{NL}|#{ESCAPE})*\'/
|
||||
|
||||
IDENT = /[-_]?#{NMSTART}#{NMCHAR}*/
|
||||
NAME = /#{NMCHAR}+/
|
||||
|
|
Loading…
Add table
Reference in a new issue