Skip to content

Commit d269a64

Browse files
CrokilyCopilot
andauthored
Update app/components/Contribute.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8bf9819 commit d269a64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/Contribute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { buildDocsNewUrl } from "@/lib/github";
2323

2424
type DirNode = { name: string; path: string; children?: DirNode[] };
2525

26-
const FILENAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
26+
const FILENAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]+$/;
2727

2828
// 统一调用工具函数生成 GitHub 新建链接,路径规则与 Edit 按钮一致
2929
function buildGithubNewUrl(dirPath: string, filename: string, title: string) {

0 commit comments

Comments
 (0)