fix(compiler): use parentheses around expressions and escape quotes

This commit is contained in:
Tobias Bosch
2014-11-14 14:18:23 -08:00
parent 03882dcccc
commit b2ecdb5da7
4 changed files with 45 additions and 12 deletions

View File

@ -76,6 +76,10 @@ class StringWrapper {
static equals(String s, String s2) {
return s == s2;
}
static String replaceAll(String s, RegExp from, String replace) {
return s.replaceAll(from, replace);
}
}
class StringJoiner {

View File

@ -66,6 +66,10 @@ export class StringWrapper {
static equals(s:string, s2:string) {
return s === s2;
}
static replaceAll(s:string, from:RegExp, replace:string) {
return s.replace(from.multiple, replace);
}
}
export class StringJoiner {