This project is archived and is in readonly mode.

#430 ✓resolved
Thomas Aylott

String.substitute goofing up nested curly braces

Reported by Thomas Aylott | October 16th, 2008 @ 04:59 PM | in 1.2.1

String.substitute : "should substitute without goofing up nested curly braces"

You can currently use an opening curly brace in your substitute keys. This is pretty unexpected behavior anyway.


	'should substitute without goofing up nested curly braces': function(){
		value_of("fred {is {not} very} cool".substitute({ 'is {not':'BROKEN' })).should_not_be("fred BROKEN very} cool");
		value_of('this {should {break} mo} betta'.substitute({ 'break':'work' })).should_be('this {should work mo} betta');
	}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages