瀏覽代碼

format.js: if string is undefined, return

version-14
Anand Doshi 11 年之前
父節點
當前提交
1bb395559f
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      frappe/public/js/frappe/format.js

+ 2
- 0
frappe/public/js/frappe/format.js 查看文件

@@ -1,4 +1,6 @@
function format (str, args) {
if(str==undefined) return str;

this.unkeyed_index = 0;
return str.replace(/\{(\w*)\}/g, function(match, key) {



Loading…
取消
儲存