Descriptions containing the letters 'end' get mangled
-
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(){').
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.