bearcatjs / bearcat

powered by enhanced javaScript objects
http://bearcatjs.org/
Other
591 stars 110 forks source link

placeholder problem #205

Open zmox opened 9 years ago

zmox commented 9 years ago

in bearcat version v0.4.25:

this work:

var Test =function(){
    this.$id = 'test';
    this.test = "${test}";
}   

but this not work:

var Test =function(){
    this.$id = 'test';
    this.test = '${test}';
}   

because FUNC_PROPS_REGEXP_ATTR just match " not '

FUNC_PROPS_REGEXP_ATTR: /\sthis.\w+\s=\s\"\$(.|\s)?\";/g

fantasyni commented 9 years ago

fixed it with bearcat@0.4.26