Browse Source

format.js: if string is undefined, return

version-14
Anand Doshi 11 years ago
parent
commit
1bb395559f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frappe/public/js/frappe/format.js

+ 2
- 0
frappe/public/js/frappe/format.js View File

@@ -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…
Cancel
Save