This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
format.js: if string is undefined, return
version-14
Anand Doshi
11 years ago
parent
bef7b9740c
commit
1bb395559f
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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) {
Write
Preview
Loading…
Cancel
Save