Repository navigation
Commit b2f676a
committed
Ignore invisible formatting characters and normalize list markers in loose matching mode
- markdown lists seems to break [Pasted text] [Fragment] is not equal to [Pasted text]
- remove generic-1 and create minimal test case for this [Changes]
└── apps
└── editor
└── src
└── utils
└── changes-integration
└── search-replace-processor
└── apply-search-replace-to-content
├── apply-search-replace-to-content.spec.ts
├── apply-search-replace-to-content.ts
├── index.ts
└── test-cases
├── add-blank-line
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── adjacent-blocks-and-duplicate-snippets
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── basic-conflict
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── delete-first-line
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── deletion
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── expand-line-before-blank-line
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── extra-blank-lines-in-search
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── insert-after-context
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── insert-before-context
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── invisible-chars-and-list-markers
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── multiple-conflicts
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── multiple-seven-char-equals-underlines
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── noop-blocks
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── out-of-order-blocks
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── out-of-order-shrinking-block
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── out-of-order-with-duplicate-snippet
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── prepend-empty-search
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── preserve-boundary-blank-lines
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── remove-blank-line
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── reorder-without-context
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── rst-syntax
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── seven-char-equals-underline
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── similar-code-multiple-blocks
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── strict-match-precedence
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── trailing-blank-lines-diff
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
├── trailing-whitespace
│ ├── expected.txt
│ ├── markers.txt
│ └── original.txt
└── whitespace-issues
├── expected.txt
├── markers.txt
└── original.txt1 parent 4db9c97 commit b2f676a
5 files changed
Lines changed: 34 additions & 3 deletions
File tree
- apps/editor/src/utils/changes-integration/search-replace-processor/apply-search-replace-to-content
- test-cases/invisible-chars-and-list-markers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments