Skip to content

Commit 7b4bc42

Browse files
committed
update test output
1 parent a086887 commit 7b4bc42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/analysis_tests/tests/src/expected/CompletionRegexp.res.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,11 @@ Path
7474
"tags": [],
7575
"detail": "t => string",
7676
"documentation": {"kind": "markdown", "value": "\n`source(regexp)` returns the source text for this `RegExp`, without the two forward slashes (if present), and without any set flags.\n\nSee [`RegExp.source`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source) on MDN.\n\n## Examples\n```rescript\nlet regexp = RegExp.fromStringWithFlags(\"\\\\w+\", ~flags=\"g\")\nConsole.log(regexp->RegExp.source) // Logs `\\w+`, the source text of the `RegExp`\n```\n"}
77+
}, {
78+
"label": "RegExp.flags",
79+
"kind": 12,
80+
"tags": [],
81+
"detail": "t => string",
82+
"documentation": {"kind": "markdown", "value": "\n`flags(regexp)` returns a string consisting of all the flags set on this `RegExp`.\n\nSee [`RegExp.flags`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags) on MDN.\n\n## Examples\n```rescript\nlet regexp = RegExp.fromString(\"\\\\w+\", ~flags=\"gi\")\nConsole.log(regexp->RegExp.flags) // Logs \"gi\", all the flags set on the RegExp\n```\n"}
7783
}]
7884

0 commit comments

Comments
 (0)