Bläddra i källkod

format.js: if string is undefined, return

version-14
Anand Doshi 11 år sedan
förälder
incheckning
1bb395559f
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. +2
    -0
      frappe/public/js/frappe/format.js

+ 2
- 0
frappe/public/js/frappe/format.js Visa fil

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

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




Laddar…
Avbryt
Spara