浏览代码

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) {



正在加载...
取消
保存