Explorer

html-ui.account-name-in

description
The name of the account in the text of definy_list_accounts ('' if it is not there)
type
Fn(accounts: String, account_id: String) -> String
expression
fn(accounts$0, account_id$1) =>
  let marker$2 = @core.string-join(items: ["\nAccount ", $1, " "], separator: "");
  let at$3 = @core.string-index-of(text: $0, target: $2, start: 0);
  match @core.less-than(left: $3, right: 0) {
    true =>
      "",
    false =>
      let from$4 = @core.plus(left: $3, right: @core.string-length(value: $2));
      let end$5 = @core.string-index-of(text: $0, target: "\n", start: $4);
      @core.string-slice(
        value: $0,
        start: $4,
        end: match @core.less-than(left: $5, right: 0) {
          true =>
            @core.string-length(value: $0),
          false =>
            $5
        }
      )
  }
visibility
public
html-ui.account-name-in (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: iEulwFqBthx0pEx7WjPmw-9jB7bs_DlzDYPOv-IPYoE
content hash: mDUmGMiIagz3qlSDNZyG_shSfrOY1tFKr24fsACtjv0