ソースを参照

#343: Resolved having dot in the key name

pull/795/head
Vaspar-a 4年前
コミット
e827c5572b
2個のファイルの変更10420行の追加47行の削除
  1. +4
    -1
      mustache.js
  2. +10416
    -46
      package-lock.json

+ 4
- 1
mustache.js ファイルの表示

@@ -396,7 +396,10 @@ Context.prototype.lookup = function lookup (name) {
var value;
if (cache.hasOwnProperty(name)) {
value = cache[name];
} else {
} else if (name.includes('.') && cache['.'] && cache['.'].hasOwnProperty(name)) {
value = cache['.'][name];
}
else {
var context = this, intermediateValue, names, index, lookupHit = false;

while (context) {


+ 10416
- 46
package-lock.json
ファイル差分が大きすぎるため省略します
ファイルの表示


読み込み中…
キャンセル
保存