We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7211a92 commit 5da7eb8Copy full SHA for 5da7eb8
web/src/apps/dataService/module/dataService/index.vue
@@ -215,11 +215,11 @@ export default {
215
};
216
const validateAPIPath = (rule, value, callback) => {
217
const result = value && value.trim();
218
- const reg = /^\/[\w_-]{3,199}$/g;
+ const reg = /^[\w_-][\/\w_-]{3,199}$/g;
219
if (!reg.test(result)) {
220
callback(
221
new Error(
222
- "支持英文、数字、下划线(_)、连字符(-),且只能以正斜线(/)开头,不超过200个字符,如/user"
+ "支持英文、数字、下划线(_)、连字符(-)、正斜线(/),且不能以正斜线(/)开头,4到200个字符"
223
)
224
);
225
} else {
0 commit comments