Skip to content

Doc comment with comments inside is not shown properly on hover. #522

Closed
@aspeddro

Description

@aspeddro
let a = Js.Re.exec_

Hover .exec_ show:

(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]

The start of link [`R is cut.

[`RegExp.prototype.exec()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions