adambard / adambard/learnxinyminutes-docs
The Vimscript use a wrong regex sample
オープン
- 主要言語
- Markdown
- スター
- 12.3k
- フォーク
- 3.7k
- 平均マージ
- 13時間 10分
- マージ済み PR(30日)
- 6
説明
In the line 112-118.
The sample put the pattern and string in wrong place, so the match test always false, the unmatch test always true.
I think the follow is better:
```
echo "hello" =~ "He" | " Regular expression match, uses 'ignorecase'
echo "hello" =~# "He" | " Regular expression match, case sensitive
echo "hello" =~? "He" | " Regular expression match, case insensitive
echo "hello" !~ "He" | " Regular expression unmatch, use 'ignorecase'
echo "hello" !~# "He" | " Regular expression unmatch, case sensitive
echo "hello" !~? "He" | " Regular expression unmatch, case insensitive
```
コントリビューションガイド
評価
この issue はまだ評価されていません。