IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 34 | 34 | shortcode: wp.shortcode.fromMatch( match ) |
| 35 | 35 | }; |
| 36 | 36 | |
| 37 | | // If we matched a leading `[`, strip it from the match |
| 38 | | // and increment the index accordingly. |
| 39 | | if ( match[1] ) { |
| | 37 | // If we matched a leading `[`, and it has a matching counterpart, |
| | 38 | // strip it from the match and increment the index accordingly. |
| | 39 | if ( match[1] && typeof result.match !== 'undefined' ) { |
| 40 | 40 | result.match = result.match.slice( 1 ); |
| 41 | 41 | result.index++; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | | // If we matched a trailing `]`, strip it from the match. |
| 45 | | if ( match[7] ) { |
| | 44 | // If we matched a trailing `]`, , and it has a matching counterpart, |
| | 45 | // strip it from the match. |
| | 46 | if ( match[7] && typeof result.match !== 'undefined' ) { |
| 46 | 47 | result.match = result.match.slice( 0, -1 ); |
| 47 | 48 | } |
| 48 | 49 | |
| | 50 | No newline at end of file |