From 8d2a65067059d8200eb6111606acbda72fc825b7 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 3 Jan 2017 14:25:36 -0800 Subject: [PATCH] [fix] StyleSheet selector escaping Values that contain '*' (e.g. 'calc(2 * 2)') were not properly escaped, resulting in broken selectors. --- src/apis/StyleSheet/registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/StyleSheet/registry.js b/src/apis/StyleSheet/registry.js index 58a12987..98ceeae6 100644 --- a/src/apis/StyleSheet/registry.js +++ b/src/apis/StyleSheet/registry.js @@ -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