Skip to content

Commit 1fa862d

Browse files
committed
cveRecordSearchModule: add illegal characters for search: ()*"
1 parent 8f4b2f5 commit 1fa862d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/cveRecordSearchModule.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,8 @@ function allValidCharacters(searchString) {
311311
// True is returned if the string has no invalid characters, and false
312312
// otherwise. The error message is also set to indicate the invalid
313313
// characters found in the string.
314-
//
315-
// Leave out the asterisk (*) for the moment, just for testing purposes:
316-
const invalidCharacters = '{}[]"\'`<>+=|\;!~^'.split('');
314+
315+
const invalidCharacters = '(){}[]"\'`<>+=|\;!~^*'.split('');
317316
318317
const found = invalidCharacters.filter(i => searchString.includes(i));
319318

0 commit comments

Comments
 (0)