IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 57 | 57 | equal( result, undefined, 'foo shortcode not found when escaped with params' ); |
| 58 | 58 | }); |
| 59 | 59 | |
| | 60 | test( 'next() should find shortcodes that are incorrectly escaped by newlines', function() { |
| | 61 | var result; |
| | 62 | |
| | 63 | result = wp.shortcode.next( 'foo', "this has the [\n[foo]] shortcode" ); |
| | 64 | equal( result.index, 15, 'shortcode found when incorrectly escaping the start of it' ); |
| | 65 | |
| | 66 | result = wp.shortcode.next( 'foo', 'this has the [[foo]\n] shortcode' ); |
| | 67 | equal( result.index, 13, 'shortcode found when incorrectly escaping the end of it' ); |
| | 68 | }); |
| | 69 | |
| 60 | 70 | test( 'next() should find the second instances of the shortcode when the first one is escaped', function() { |
| 61 | 71 | var result; |
| 62 | 72 | |