mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Using %s in warning message
This commit is contained in:
@@ -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, '')
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user