diff --git a/app/js/jasmine-fixture.coffee b/app/js/jasmine-fixture.coffee index 515e7a5..40fc8b2 100644 --- a/app/js/jasmine-fixture.coffee +++ b/app/js/jasmine-fixture.coffee @@ -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 diff --git a/spec/jasmine-fixture-spec.coffee b/spec/jasmine-fixture-spec.coffee index 7d1eb12..fc63233 100644 --- a/spec/jasmine-fixture-spec.coffee +++ b/spec/jasmine-fixture-spec.coffee @@ -26,6 +26,7 @@ describe "jasmine.fixture", -> '#toddler .hidden.toy input[name="toyName"][value="cuddle bunny"]' #