stylelint-taro-rn
Version:
A collection of React Native specific rules for stylelint
13 lines (12 loc) • 422 B
TypeScript
/**
* Compares a string to a second value that, if it fits a certain convention,
* is converted to a regular expression before the comparison.
* If it doesn't fit the convention, then two strings are compared.
*
* Any strings starting and ending with `/` are interpreted
* as regular expressions.
*/
export function matchesStringOrRegExp(input: any, comparison: any): false | {
match: any;
pattern: any;
};