|
34 | 34 | partialsStr += '(\\:[\\w\\-]+(\\|[\\w\\-]+)*)?';
|
35 | 35 | // end 2nd exterior group
|
36 | 36 | // begin 3rd exterior group, an optional group
|
37 |
| - // look for an opening parenthesis, followed by >=0 whitespaces, |
38 |
| - // followed by >=0 whitespaces, followed by a colon, followed by >=0 whitespaces |
39 |
| - partialsStr += '(\\(\\s*\\w+\\s*:\\s*'; |
| 37 | + // look for an opening parenthesis, followed by >=0 whitespaces, followed by |
| 38 | + // >0 alphanumerics, followed by >=0 whitespaces, followed by a colon, |
| 39 | + // followed by >=0 whitespaces |
| 40 | + partialsStr += '(\\(\\s*\\w+\\s*\\:\\s*'; |
40 | 41 | // followed by an interior group
|
41 | 42 | // comprising a single quote, followed by an interior group comprising
|
42 |
| - // >0 characters that are not single quotes or backslashes |
43 |
| - // or >0 character pairs comprising a backlash, followed by any character |
44 |
| - // look for a single quote to termination this pattern |
| 43 | + // >=0 characters that are not single quotes or backslashes |
| 44 | + // or >=0 character pairs comprising a backlash, followed by any character. |
| 45 | + // look for a single quote to terminate this pattern |
45 | 46 | partialsStr += '(\'([^\'\\\\]|\\\\.)*\'';
|
46 | 47 | // if the pattern wrapped in single quotes is not found, look for one wrapped
|
47 | 48 | // in double quotes
|
48 | 49 | // look for a double quote, followed by an interior group comprising
|
49 |
| - // >0 characters that are not double quotes or backslashes |
50 |
| - // or >0 character pairs comprising a backlash, followed by any character |
51 |
| - // look for a double quote to termination this pattern |
| 50 | + // >=0 characters that are not double quotes or backslashes |
| 51 | + // or >=0 character pairs comprising a backlash, followed by any character. |
| 52 | + // look for a double quote to terminate this pattern |
52 | 53 | partialsStr += '|"([^"\\\\]|\\\\.)*")';
|
53 | 54 | // look for a closing parenthesis
|
54 | 55 | partialsStr += '\\))?';
|
|
0 commit comments