CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
index.d.ts29 linesDownload Raw Back to astral-regex
1declare namespace astralRegex {2	interface Options {3		/**4		Only match an exact string. Useful with `RegExp#test()` to check if a string is a astral symbol. Default: `false` _(Matches any astral symbols in a string)_5		*/6		readonly exact?: boolean;7	}8}9 10/**11Regular expression for matching [astral symbols](https://everything2.com/title/astral+plane).12 13@returns A `RegExp` for matching astral symbols.14 15@example16```17import astralRegex = require('astral-regex');18 19astralRegex({exact: true}).test('๐Ÿฆ„');20//=> true21 22'foo ๐Ÿฆ„ ๐Ÿ’ฉ bar'.match(astralRegex());23//=> ['๐Ÿฆ„', '๐Ÿ’ฉ']24```25*/26declare function astralRegex(options?: astralRegex.Options): RegExp;27 28export = astralRegex;29 
basant307/AI_Governance_Project ยท CoolFace