You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Js.Re.t, string) => option<Js.Re.result>
Executes a search on a given string using the given RegExp object. urns Some(Js.Re.result) if a match is found, None otherwise.
res example Match "quick brown" followed by "jumps", ignoring characters in between Remember "brown" and "jumps" Ignore case
re = %re("/quick\s(brown).+?(jumps)/ig") result = Js.Re.exec_(re, "The Quick Brown Fox Jumps Over The Lazy Dog")
egExp.prototype.exec()`]([https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec](vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/code/electron-browser/workbench/workbench.html)) MDN.
Docstring:
(**
Executes a search on a given string using the given RegExp object.
Returns `Some(Js.Re.result)` if a match is found, `None` otherwise.
```res example
/* Match "quick brown" followed by "jumps", ignoring characters in between
* Remember "brown" and "jumps"
* Ignore case
*/
let re = %re("/quick\s(brown).+?(jumps)/ig")
let result = Js.Re.exec_(re, "The Quick Brown Fox Jumps Over The Lazy Dog")
```
See
[`RegExp.prototype.exec()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec)
on MDN.
*)
external exec_ : t -> string -> result option = "exec" [@@bs.send] [@@bs.return null_to_opt]
cristianoc
changed the title
Js.Re.exec_ docstring is cutting some characters
Doc comment with code block (triple backquotes) is not shown properly on hover.
Jul 26, 2022
The parser handles the examples properly.
A verbatim print of what's stored in the ns.doc attribute shows the problem already.
Something must be happening between parsing and when the typed ast is created in the compiler.
cristianoc
changed the title
Doc comment with code block (triple backquotes) is not shown properly on hover.
Doc comment with comments inside is not shown properly on hover.
Jul 29, 2022
…properly on hover. (#526)
* Add an example doc comment with code block
See #522
* More tests in a separate file.
* Add example with no nested comments.
* Found the issue.
* Remove PrepareUtils
Might be the last file inherited from the original extension, which keeps on giving years later.
* Update CHANGELOG.md
Hover
.exec_
show:Docstring:
The start of link [`R is cut.
The text was updated successfully, but these errors were encountered: