mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-04 11:04:58 +00:00
[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:
@@ -14,7 +14,7 @@ import ReactNativePropRegistry from '../../modules/ReactNativePropRegistry';
|
|||||||
|
|
||||||
const prefix = 'r';
|
const prefix = 'r';
|
||||||
const SPACE_REGEXP = /\s/g;
|
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
|
* Creates an HTML class name for use on elements
|
||||||
|
|||||||
Reference in New Issue
Block a user