refactor: 统一自研插件格式为 Liugin
18个插件: class Plugin -> class Liugin 10个插件: 测试块 Plugin() -> Liugin() 移除 ai_image.py 中多余的 Liugin = Plugin 别名 所有自研插件现统一使用 class Liugin 作为入口类名, 加载器保留 Plugin 兼容以支持第三方插件。
This commit is contained in:
1 parent
bfefbef475
commit
357cd0958f
21 files changed
+28
-29
No files matched your search
@@ -9,7 +9,7 @@ import os
|
||||
from typing import List
|
||||
|
||||
|
||||
class Plugin:
|
||||
class Liugin:
|
||||
"""正则表达式测试器 - 测试、调试、管理正则"""
|
||||
|
||||
def __init__(self):
|
||||
@@ -430,7 +430,7 @@ class Plugin:
|
||||
|
||||
|
||||
def test_plugin():
|
||||
plugin = Plugin()
|
||||
plugin = Liugin()
|
||||
print("正则表达式测试器测试:")
|
||||
print(plugin.handle('test "\\d+" "abc123def456"'))
|
||||
print(plugin.handle('match "[a-z]+" "hello world foo bar"'))
|
||||
|
||||
Reference in new issue
Block a user