Fix matchInContainer false positives by tamo · Pull Request #1605 · hackmdio/codimd

@tamo

The function should match only the beginnings of lines.

For example, see this testcase:
```
:::spoiler
here is a :::
:::
:::
```
The last line should be completed.

Without this patch, the third line is completed and the last is not.

Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>

@Yukaii temporarily deployed to codimd-patch-1-jn9dwdmrqs0wfkl

September 29, 2020 06:08

Inactive

@Yukaii Yukaii temporarily deployed to codimd-patch-1-0us6xicrsdcdsp6

May 11, 2021 07:14

Inactive

Yukaii

@tamo @Yukaii

simplify the regex
suggested by yukaii in #1605

Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>

@Yukaii Yukaii temporarily deployed to codimd-patch-1-0us6xicrsdcdsp6

May 12, 2021 00:22

Inactive

tamo and others added 2 commits

May 13, 2021 11:41
simplify the regex
suggested by yukaii in #1605

Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>

jackycute

edgarogh pushed a commit to WartaPoirier-corp/codimd that referenced this pull request

Sep 21, 2021
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>