Commit 2989328
committed
fix(compat): use glob pattern instead of regex for code fence
Replace regex matching with glob pattern matching for code fence
detection to avoid backtick escaping issues in Bash 3.0.
Changed from: [[ "$line" =~ ^\`\`\` ]]
To: [[ "$line" == '```'* ]]
This is more reliable across all Bash versions.1 parent ea2970a commit 2989328
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments