diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-27 19:06:55 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-27 19:06:55 +0300 |
commit | abde62b53ed993b4ceec778d4fb839fa0132c165 (patch) | |
tree | 696d30f3b6b9492478f45a4fb78030d17b0c0f5c /app/assets/javascripts/droplab/constants.js | |
parent | 6a6a6720375659911b564375d75f4c6d2aceec16 (diff) |
[ci skip] Add comment to regex
Diffstat (limited to 'app/assets/javascripts/droplab/constants.js')
-rw-r--r-- | app/assets/javascripts/droplab/constants.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/droplab/constants.js b/app/assets/javascripts/droplab/constants.js index 0579b5de459..868d47e91b3 100644 --- a/app/assets/javascripts/droplab/constants.js +++ b/app/assets/javascripts/droplab/constants.js @@ -2,8 +2,9 @@ const DATA_TRIGGER = 'data-dropdown-trigger'; const DATA_DROPDOWN = 'data-dropdown'; const SELECTED_CLASS = 'droplab-item-selected'; const ACTIVE_CLASS = 'droplab-item-active'; -const TEMPLATE_REGEX = /\{\{(.+?)\}\}/g; const IGNORE_CLASS = 'droplab-item-ignore'; +// Matches `{{anything}}` and `{{ everything }}`. +const TEMPLATE_REGEX = /\{\{(.+?)\}\}/g; export { DATA_TRIGGER, |