@samitouri / QOS-React-2 / commits / ae5a124745

Using %s in warning message

mzabriskie committed Jan 26, 2015 at 18:09 UTC ae5a12474583178923eb824545c246d24df237c7
1 file changed +4 -3
src/browser/ui/dom/CSSPropertyOperations.js
+4 -3
@@ -77,9 +77,10 @@ if (__DEV__) {
77 warnedStyleValues[value] = true;
78 warning(
79 false,
80 - 'Style property values shouldn\'t contain a semicolon. Try "' +
81 - name + ': ' + value.replace(badStyleValueWithSemicolonPattern, '') +
82 - '" instead.'
80 + 'Style property values shouldn\'t contain a semicolon. ' +
81 + 'Try "%s: %s" instead.',
82 + name,
83 + value.replace(badStyleValueWithSemicolonPattern, '')
84 );
85 };
86