Using %s in warning message

This commit is contained in:
mzabriskie
2015-01-26 18:09:21 -07:00
parent fca0fdc115
commit ae5a124745
+4 -3
View File
@@ -77,9 +77,10 @@ if (__DEV__) {
warnedStyleValues[value] = true;
warning(
false,
'Style property values shouldn\'t contain a semicolon. Try "' +
name + ': ' + value.replace(badStyleValueWithSemicolonPattern, '') +
'" instead.'
'Style property values shouldn\'t contain a semicolon. ' +
'Try "%s: %s" instead.',
name,
value.replace(badStyleValueWithSemicolonPattern, '')
);
};