@cainiaofe/cn-utils
Version:
菜鸟前端基础工具库
17 lines (16 loc) • 502 B
TypeScript
export default class Match {
/**
* Get first matched item for a string
* @param {RegExp} regexp
* @param {String} ua
* @return {Array|{index: number, input: string}|*|boolean|string}
*/
static getFirstMatch(regexp: any, ua: any): any;
/**
* Get second matched item for a string
* @param regexp
* @param {String} ua
* @return {Array|{index: number, input: string}|*|boolean|string}
*/
static getSecondMatch(regexp: any, ua: any): any;
}