Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SofiaXu
Copy link

@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

@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.

None yet

2 participants