mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
r.utils.pyStrFormat: Replace more than one format parameter.
This commit is contained in:
committed by
Chad Birch
parent
7e6cbc47b7
commit
acfa8a232f
@@ -58,7 +58,7 @@ r.utils = {
|
||||
return params
|
||||
},
|
||||
|
||||
_pyStrFormatRe: /%\((\w+)\)s/,
|
||||
_pyStrFormatRe: /%\((\w+)\)s/g,
|
||||
pyStrFormat: function(format, params) {
|
||||
return format.replace(this._pyStrFormatRe, function(match, fieldName) {
|
||||
if (!(fieldName in params)) {
|
||||
|
||||
Reference in New Issue
Block a user