Procházet zdrojové kódy

throw inside the if

tags/0.6.0
Michael Jackson před 13 roky
rodič
revize
52c7e43a5f
1 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. +6
    -6
      mustache.js

+ 6
- 6
mustache.js Zobrazit soubor

@@ -376,14 +376,14 @@ var Mustache;
}

function escapeTags(tags) {
if (tags.length === 2) {
return [
new RegExp(escapeRe(tags[0]) + "\\s*"),
new RegExp("\\s*" + escapeRe(tags[1]))
];
if (tags.length !== 2) {
throw new Error("Invalid tags: " + tags.join(" "));
}

throw new Error("Invalid tags: " + tags.join(" "));
return [
new RegExp(escapeRe(tags[0]) + "\\s*"),
new RegExp("\\s*" + escapeRe(tags[1]))
];
}

/**


Načítá se…
Zrušit
Uložit