Skip to content

对 Episode 新增自定义字符串模板#105

Open
SofiaXu wants to merge 1 commit into
Zeal-L:mainfrom
SofiaXu:main
Open

对 Episode 新增自定义字符串模板#105
SofiaXu wants to merge 1 commit into
Zeal-L:mainfrom
SofiaXu:main

Conversation

@SofiaXu
Copy link
Copy Markdown

@SofiaXu SofiaXu commented Dec 15, 2023

模板样式 ${variable[ ?? fallback][ then function_name([arg])]}

参数名 是否可选 意义
variable 字典中传递的 Key 值,如 title
fallback 变量不存在时的默认值,可以是数字、字符串,带空格的字符串应加引号,如 0、"0"、"未知标题"
function_name 函数名,目前支持 padStart 和 padEnd 两个函数,为数字补零
arg 函数参数,目前只支持零个或一个数字参数,如 2

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

十分感谢你的贡献!我会认真研究你的代码,并尽快回复你! (≧∀≦)

@Zeal-L Zeal-L added the enhancement New feature or request label Dec 15, 2023
@Zeal-L Zeal-L self-assigned this Apr 3, 2024
@Zeal-L Zeal-L self-requested a review April 3, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

2 participants