mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 08:45:00 +00:00
revert data://
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ class Image extends Shape {
|
|||||||
PropTypes.number,
|
PropTypes.number,
|
||||||
function(props, propName, componentName) {
|
function(props, propName, componentName) {
|
||||||
if (Object.keys(props[propName]).length != 1 ||
|
if (Object.keys(props[propName]).length != 1 ||
|
||||||
!/^\s*data:\/\/data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i.test(props[propName].uri)) {
|
!/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i.test(props[propName].uri)) {
|
||||||
return new Error(
|
return new Error(
|
||||||
'Invalid prop `' + propName + '` supplied to' +
|
'Invalid prop `' + propName + '` supplied to' +
|
||||||
' `' + componentName + '`. Validation failed.'
|
' `' + componentName + '`. Validation failed.'
|
||||||
|
|||||||
Reference in New Issue
Block a user