You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/09/02 12:00:40 UTC

[incubator-dlab] branch DLAB-1070 created (now b5f022c)

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

ankovalyshyn pushed a change to branch DLAB-1070
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at b5f022c  [DLAB-1070]: fixed notebook and clusters validation on the identity

This branch includes the following new commits:

     new b5f022c  [DLAB-1070]: fixed notebook and clusters validation on the identity

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org


[incubator-dlab] 01/01: [DLAB-1070]: fixed notebook and clusters validation on the identity

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1070
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit b5f022c1d3b282eefd3dab69511cfa3f54e1feaa
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Mon Sep 2 15:00:29 2019 +0300

    [DLAB-1070]: fixed notebook and clusters validation on the identity
---
 .../src/main/resources/webapp/src/app/core/util/checkUtils.ts           | 2 +-
 .../src/main/resources/webapp/src/app/core/util/patterns.ts             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts b/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
index 163341c..9a05903 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/util/checkUtils.ts
@@ -41,6 +41,6 @@ export class CheckUtils {
   }
 
   public static delimitersFiltering(resource): string {
-    return resource.replace(PATTERNS.delimitersRegex, '').toString().toLowerCase();
+    return resource.replace(RegExp(PATTERNS.delimitersRegex, 'g'), '').toString().toLowerCase();
   }
 }
diff --git a/services/self-service/src/main/resources/webapp/src/app/core/util/patterns.ts b/services/self-service/src/main/resources/webapp/src/app/core/util/patterns.ts
index 2ea34be..767d7ec 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/util/patterns.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/util/patterns.ts
@@ -20,7 +20,7 @@
 export const PATTERNS = {
   namePattern: '[-_a-zA-Z0-9]*[_-]*[a-zA-Z0-9]+',
   projectName: '[a-zA-Z0-9]+',
-  delimitersRegex: '/[-_]?/g',
+  delimitersRegex: '[-_]?',
   url: '[a-zA-Z0-9.://%#&\\.@:%-_\+~#=]*\.[^\s]*[a-zA-Z0-9]+',
   nodeCountPattern: '^[1-9]\\d*$',
   integerRegex: '^[0-9]*$'


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org