Skip to content

Commit

Permalink
fix: better fields word check
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 7, 2024
1 parent 5a5b26b commit 0a6aeac
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<h2> Changelog </h2>

* `2.9.1`: fields completion support xxx-xxx
* `2.9.0`: support fields completion
* `2.8.2`: add changelog
* `2.7.0`: 添加恢复默全部设置按钮
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "2.9.0",
"version": "2.9.1",
"packageManager": "pnpm@9.0.6",
"scripts": {
"update:config": " pnpm ts-node scripts/generateConfig.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/lang-tiddlywiki/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lang-tiddlywiki",
"version": "2.8.2",
"version": "2.9.1",
"description": "",
"scripts": {
"build": "cm-buildhelper src/tiddlywiki.ts"
Expand Down
2 changes: 1 addition & 1 deletion src/tiddlywiki-codemirror-6/modules/completions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default (widget: IWidget, self: any) => {
function checkFieldStart(word: string) {
// :
const regex =
/^@[a-zA-Z0-9_\u4e00-\u9fa5]+[:][a-zA-Z0-9_\u4e00-\u9fa5]+$/;
/^@[a-zA-Z0-9_-\u4e00-\u9fa5]+[:][a-zA-Z0-9_-\u4e00-\u9fa5]+$/;

return regex.test(word);
}
Expand Down
2 changes: 1 addition & 1 deletion src/tiddlywiki-codemirror-6/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "$:/plugins/oeyoews/tiddlywiki-codemirror-6",
"name": "CodeMirror6",
"description": "CodeMirror 6 editor",
"version": "2.9.0",
"version": "2.9.1",
"core-version": ">=5.3.4",
"list": "readme changelog"
}

0 comments on commit 0a6aeac

Please sign in to comment.