Skip to content

Commit

Permalink
Merge pull request #41 from kchien/fix_issue_16
Browse files Browse the repository at this point in the history
Fix issue #16
  • Loading branch information
searls committed Nov 14, 2014
2 parents 2324784 + 75d73db commit f41c79e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/js/jasmine-fixture.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ createHTMLBlock = ( ->
regTag = /(\w+)/i
regId = /(?:^|\b)#([\w-!]+)/i
regTagNotContent = /((([#\.]?[\w-]+)?(\[([\w!]+(="([^"]|\\")+")? {0,})+\])?)+)/i
regClasses = /(\.[\w-]+)/g
###
See lookahead syntax (?!) at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
###
regClasses = /(\.[\w-]+)(?!["\w])/g
regClass = /\.([\w-]+)/i
regReference = /(@[\w$_][\w$_\d]+)/i
regAttrDfn = /(\[([\w-!]+(="?([^"]|\\")+"?)? {0,})+\])/ig
Expand Down
1 change: 1 addition & 0 deletions spec/jasmine-fixture-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe "jasmine.fixture", ->
'#toddler .hidden.toy input[name="toyName"][value="cuddle bunny"]' #<div id="toddler"><div class="hidden toy"><input name="toyName" value="cuddle bunny"></div></div>
'select[name="date[year]"]' #<select name="date[year]"></select>
'input[name="some[thing][foo]"]'
'input[type="text"][value="4.99"][class="class-name"]'
]

describe ".affix", ->
Expand Down

0 comments on commit f41c79e

Please sign in to comment.