Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Descriptions containing the letters 'end' get mangled

#86

I have a spec described as

it 'should extend ...'

Which gets changed to

'should ext}); ...'

By changing the following line

replace(/end(?= |\n|$)/gm, '});').

to

replace(/\send(?= |\n|$)/gm, '});').

fixes the problem.

Reported by dwg · April 18th, 2009 @ 10:23 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. dwg
    dwg

    Update: the line should be

    replace(/(?:\s|^)end(?=\s|$)/gm, '});').

    Additionally, the line

    replace(/^(?: *)(before_each|after_each|before|after)(?= |\n|$)/gm, 'this.addHook("$1", function(){').

    assumes that indentation is spaces (I use tabs), should be

    replace(/^(?:\s*)(before_each|after_each|before|after)(?=\s|$)/gm, 'this.addHook("$1", function(){').

    April 19th, 2009 @ 12:21 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.