Skip to content

[BUG] Insert After can't match | ----- | to append new table row #970

@dsklur

Description

@dsklur

Describe the bug
Old Version 1.18.1 can match but newer version can't match

To Reproduce

| Name          | Quantity | HH:MM |
| ------------- | -------- | ----- |

Set up Insert After field
| ----- |

Obsidian Debug Info
Quick add Version 2.6.0

QuickAdd: (ERROR) Insert After Error: Unable to find insert after line in file Error: Insert After Error: Unable to find insert after line in file
at _2.insertAfterHandler (plugin:quickadd:76:954)
at async _2.formatFileContent (plugin:quickadd:76:54)
at async _2.formatContentWithFile (plugin:quickadd:75:2236)
at async $2.onFileExists (plugin:quickadd:85:1484)
at async $2.run (plugin:quickadd:84:1443)
at async iZ.onChooseCaptureType (plugin:quickadd:87:8462)
at async iZ.execute (plugin:quickadd:87:8188)
at async bZ.executeChoice (plugin:quickadd:59:7386)
at async bZ.executeCommands (plugin:quickadd:59:4907)
at async bZ.run (plugin:quickadd:59:4655)
plugin:quickadd:73 QuickAdd: (ERROR) Insert After Error: Unable to find insert after line in file Error: Insert After Error: Unable to find insert after line in file
at _2.insertAfterHandler (plugin:quickadd:76:954)
at async _2.formatFileContent (plugin:quickadd:76:54)
at async _2.formatContentWithFile (plugin:quickadd:75:2236)
at async $2.onFileExists (plugin:quickadd:85:1484)
at async $2.run (plugin:quickadd:84:1443)
at async iZ.onChooseCaptureType (plugin:quickadd:87:8462)
at async iZ.execute (plugin:quickadd:87:8188)
at async Object.callback (plugin:quickadd:105:9024)

Environment

  • Obsidian version: 1.9.14
  • QuickAdd version: 2.6.0
  • Operating system: Windows 11

Old version that works

  • QuickAdd version: 1.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions