init
This commit is contained in:
39
structs/RegexResult.d.ts
vendored
Normal file
39
structs/RegexResult.d.ts
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
*
|
||||
* @privateRemarks
|
||||
*
|
||||
* example directly translated from the api docs and is untested
|
||||
*
|
||||
* I also don't know if javascript's regex will work
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* let r = new Regex("^(test123)"),
|
||||
* s = "test123 abcd 345345",
|
||||
* m = r.search(r, s)
|
||||
*
|
||||
* if (m.count > 0)
|
||||
* ui.notify_above_map(m.matches[1], "Lua regex", 140)
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
declare class RegexResult {
|
||||
|
||||
/**
|
||||
* only for testing,
|
||||
*
|
||||
* @param type "debug"
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* new Feat("debug")
|
||||
*/
|
||||
constructor(type: "debug");
|
||||
|
||||
readonly count: integer;
|
||||
|
||||
readonly matches: string[];
|
||||
|
||||
public __tostring(): string;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user