Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

feat(validations): support letters of all existing languages as the 1st letter of entities #1514

Merged
merged 5 commits into from
Jan 10, 2019

Conversation

HeyRoach
Copy link
Contributor

@HeyRoach HeyRoach commented Jan 9, 2019

No description provided.

@coveralls
Copy link

coveralls commented Jan 9, 2019

Pull Request Test Coverage Report for Build 1541

  • 5 of 6 (83.33%) changed or added relevant lines in 3 files are covered.
  • 95 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.05%) to 53.794%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/app/shared/components/create-update-delete-dialog/create-update-delete-dialog.component.ts 2 3 66.67%
Files with Coverage Reduction New Missed Lines %
src/app/shared/components/create-update-delete-dialog/create-update-delete-dialog.component.ts 1 43.02%
src/app/vm/container/vm-filter.container.ts 26 35.37%
src/app/reducers/vm/redux/vm.reducers.ts 68 33.33%
Totals Coverage Status
Change from base Build 1525: -0.05%
Covered Lines: 8864
Relevant Lines: 14566

💛 - Coveralls

/**
* The first symbol is a letter , further all symbols except comma
*/
public static readonly entityValidator = '^[^\\\\d_*&^%$#@!~-]{1}[^,]*[\\S]$';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can find where this validation is done in https://github.com/apache/cloudstack, so that you can explain this regex. Link it here if you find something, if not, write a unit test.

@HeyRoach HeyRoach requested a review from wowshakhov January 9, 2019 05:52
@HeyRoach HeyRoach merged commit 1909c1f into bwsw:master Jan 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants