Skip to content

I hope you can set the id format #43

@jiajiala

Description

@jiajiala
var genID = () => {
  const now = new Date();
  const year = now.getFullYear();
  const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份补零
  const day = String(now.getDate()).padStart(2, '0');        // 日期补零
  const hours = String(now.getHours()).padStart(2, '0');
  const minutes = String(now.getMinutes()).padStart(2, '0');
  const seconds = String(now.getSeconds()).padStart(2, '0');
  
  return `lj-J${year}-${month}-${day}-${hours}${minutes}${seconds}`;
};
var blockIDRegex = /(?:^| +)(?<blockID>\^J\d{4}-\d{2}-\d{2}-\d{6})$/u;

This is my temporary modification, hope to be native support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions