diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-08-07 09:42:35 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-08-07 09:42:35 +0000 |
commit | 9e421d6d4e7eb6564f7a21db8921f6f8163b0b90 (patch) | |
tree | 5aed6d16627e751301a7c0e25bd1a8fc2ddcc3c4 /spec | |
parent | 2006724e9354df4cb9386ef57a39d08022400f4f (diff) | |
parent | 136865713bbaeee03e45e9e7154dd99338d565d6 (diff) | |
download | gitlab-ce-9e421d6d4e7eb6564f7a21db8921f6f8163b0b90.tar.gz |
Merge branch 'mc/feature/add-at-colon-variable-masking' into 'master'
Allow masking @ and : characters
Closes #63043
See merge request gitlab-org/gitlab-ce!31065
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/ci_variable_list/ajax_variable_list_spec.js | 2 | ||||
-rw-r--r-- | spec/javascripts/ci_variable_list/ci_variable_list_spec.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/ci_variable_list/ajax_variable_list_spec.js b/spec/javascripts/ci_variable_list/ajax_variable_list_spec.js index e6a969bd855..b2fe315f6c6 100644 --- a/spec/javascripts/ci_variable_list/ajax_variable_list_spec.js +++ b/spec/javascripts/ci_variable_list/ajax_variable_list_spec.js @@ -224,7 +224,7 @@ describe('AjaxFormVariableList', () => { describe('maskableRegex', () => { it('takes in the regex provided by the data attribute', () => { - expect(container.dataset.maskableRegex).toBe('^[a-zA-Z0-9_+=/-]{8,}$'); + expect(container.dataset.maskableRegex).toBe('^[a-zA-Z0-9_+=/@:-]{8,}$'); expect(ajaxVariableList.maskableRegex).toBe(container.dataset.maskableRegex); }); }); diff --git a/spec/javascripts/ci_variable_list/ci_variable_list_spec.js b/spec/javascripts/ci_variable_list/ci_variable_list_spec.js index 064113e879a..c8d6f789ed0 100644 --- a/spec/javascripts/ci_variable_list/ci_variable_list_spec.js +++ b/spec/javascripts/ci_variable_list/ci_variable_list_spec.js @@ -162,7 +162,7 @@ describe('VariableList', () => { }); it('has a regex provided via a data attribute', () => { - expect($wrapper.attr('data-maskable-regex')).toBe('^[a-zA-Z0-9_+=/-]{8,}$'); + expect($wrapper.attr('data-maskable-regex')).toBe('^[a-zA-Z0-9_+=/@:-]{8,}$'); }); it('allows values that are 8 characters long', done => { |