[fix] StyleSheet selector escaping

Values that contain '*' (e.g. 'calc(2 * 2)') were not properly escaped,
resulting in broken selectors.
This commit is contained in:
Nicolas Gallagher
2017-01-03 14:25:36 -08:00
parent 4cc1c983e8
commit 8d2a650670
+1 -1
View File
@@ -14,7 +14,7 @@ import ReactNativePropRegistry from '../../modules/ReactNativePropRegistry';
const prefix = 'r';
const SPACE_REGEXP = /\s/g;
const ESCAPE_SELECTOR_CHARS_REGEXP = /[(),":?.%\\$#]/g;
const ESCAPE_SELECTOR_CHARS_REGEXP = /[(),":?.%\\$#*]/g;
/**
* Creates an HTML class name for use on elements