diff options
author | Jon Bratseth <bratseth@oath.com> | 2020-12-10 11:48:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 11:48:00 +0100 |
commit | 0e41246f8a59ff6a85a9f37666e3133bd97c700f (patch) | |
tree | 0bdbc22e65e472ab540ddcab7f655c6cc56c296c /container-search-gui | |
parent | 12c445a8a932b4642cb9d33024e53430eecf7457 (diff) | |
parent | 80403fa9e02ecde167ddd4c119f0522987aaba3f (diff) |
Merge pull request #15766 from klebadev/autocompletion_ignore_case
Ignore case on autocomplete in querybuilder
Diffstat (limited to 'container-search-gui')
2 files changed, 2 insertions, 2 deletions
diff --git a/container-search-gui/src/main/resources/gui/editarea/edit_area/plugins/autocompletion/autocompletion.js b/container-search-gui/src/main/resources/gui/editarea/edit_area/plugins/autocompletion/autocompletion.js index 5531a2a4f69..762e0882ff4 100644 --- a/container-search-gui/src/main/resources/gui/editarea/edit_area/plugins/autocompletion/autocompletion.js +++ b/container-search-gui/src/main/resources/gui/editarea/edit_area/plugins/autocompletion/autocompletion.js @@ -277,7 +277,7 @@ var EditArea_autocompletion= { nbMatch = 0;
for( i =0; i<limit ; i++ )
{
- if( line_string.substring( limit - i - 1, limit ) == content.substring( 0, i + 1 ) )
+ if( line_string.substring( limit - i - 1, limit ).toUpperCase() === content.substring( 0, i + 1 ).toUpperCase() )
nbMatch = i + 1;
}
// if characters match, we should include them in the selection that will be replaced
diff --git a/container-search-gui/src/main/resources/gui/editarea/edit_area/reg_syntax/yql.js b/container-search-gui/src/main/resources/gui/editarea/edit_area/reg_syntax/yql.js index 0a7dae862f3..545927a833a 100755 --- a/container-search-gui/src/main/resources/gui/editarea/edit_area/reg_syntax/yql.js +++ b/container-search-gui/src/main/resources/gui/editarea/edit_area/reg_syntax/yql.js @@ -72,7 +72,7 @@ editAreaLoader.load_syntax["yql"] = { ,"CASE_SENSITIVE": false
,"MAX_TEXT_LENGTH": 50 // the maximum length of the text being analyzed before the cursor position
,"KEYWORDS": {
- '': [ // the prefix of thoses items
+ '': [ // the prefix of these items
/**
* 0 : the keyword the user is typing
* 1 : (optionnal) the string inserted in code ("{@}" being the new position of the cursor, "ยง" beeing the equivalent to the value the typed string indicated if the previous )
|