You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2019/12/22 07:38:52 UTC

[incubator-apisix-dashboard] branch master updated: feat: update eslint & regexp rules (#101)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 464e0fd  feat: update eslint & regexp rules (#101)
464e0fd is described below

commit 464e0fdf79707769f83154596be42d913bfc7b46
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sun Dec 22 15:38:42 2019 +0800

    feat: update eslint & regexp rules (#101)
---
 .eslintrc.js                       | 2 +-
 src/views/schema/upstream/edit.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 8cab6cb..4f0b93f 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -26,7 +26,7 @@ module.exports = {
       'vue/key-spacing': 'error',
       'vue/match-component-file-name': 'error',
       'vue/object-curly-spacing': 'error',
-      "camelcase": ["error", {"properties": "never"}]
+      "camelcase": 'off'
     },
     'extends': [
       'eslint:recommended',
diff --git a/src/views/schema/upstream/edit.vue b/src/views/schema/upstream/edit.vue
index 53bc83f..f54fef0 100644
--- a/src/views/schema/upstream/edit.vue
+++ b/src/views/schema/upstream/edit.vue
@@ -154,7 +154,7 @@ import { TagsViewModule } from '@/store/modules/tags-view'
   name: 'RouterEdit'
 })
 export default class extends Vue {
-  private IPAndURLRegexp = /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})$|^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]))$/
+  private IPAndURLRegexp = /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})$|^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9]*[A-Za-z0-9]))$/
   private form = {
     type: null,
     key: null,