Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Sep 10, 2019
1 parent 359a188 commit e543d6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legacy/core_plugins/console/public/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ utils.collapseLiteralStrings = function (data) {

/*
The following regex describes global match on:
1. one colon followed by any number of space characters (positive lookahead, non-capturing)
2. one double quote (indicating the start of a JSON value, i.e., we are not matching JSON keys).
1. one colon followed by any number of space characters
2. one double quote (not escaped, special case for JSON in JSON).
3. greedily match any non double quote and non newline char OR any escaped double quote char (non-capturing).
4. handle a special case where an escaped slash may be the last character
5. one double quote
For instance: `: "some characters \" here"`
Will expand to: `"""some characters " here"""`
Will match and be expanded to: `"""some characters " here"""`
*/

Expand Down

0 comments on commit e543d6f

Please sign in to comment.