adambard / adambard/learnxinyminutes-docs

The Vimscript use a wrong regex sample

オープン
#5,200 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。