Skip to content

Commit

Permalink
fix: 规则识别
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Jun 2, 2024
1 parent e99cfdc commit 42ee3d9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/vsc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ outline: deep

```json
[
"eso://:****",
"eso://:****",
"eso://****",
"eso://****",
{
"searchUrl": "",
"host": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/ruleFileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const writeDB = _.throttle(async () => {
* @returns {boolean}
*/
function isESO(str: string): boolean {
return str.startsWith('eso://:')
return str.startsWith('eso://')
}

// 初始化
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.3.7",
"version": "1.3.8",
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/pc/rules/ImportRules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const url = ref('');
* @returns {boolean}
*/
function isESO(str: string): boolean {
return str.startsWith('eso://:');
return str.startsWith('eso://');
}
const canSubmit = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/utils/rule.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const isRule = (rule: any) => {
if (typeof rule === 'string') {
return rule.startsWith('eso://:');
return rule.startsWith('eso://');
}

if (typeof rule !== 'object') return false;
Expand Down

0 comments on commit 42ee3d9

Please sign in to comment.