-
Notifications
You must be signed in to change notification settings - Fork 6.2k
update Chinese translation at section Lookaround #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
translations/README-cn.md
Outdated
|
|
||
| 先行断言和后发断言都属于**非捕获簇**(不捕获文本 ,也不针对组合计进行计数)。 | ||
| 先行断言用于判断所匹配的格式是否在另一个确定的格式之前,匹配结果不包含该确定格式(仅作为约束)。 | ||
| 先行断言和后发断言(也叫 lookaround)都属于**非捕获组**(用于匹配模式,但不包括在匹配列表中)。当我们需要一个模式的前面或后面有另一个特定的模式时,就可以使用它们。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里改成(合称为 lookaround) 比较好,否则可能让人误会后发断言是lookaround
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确实这样比较合理,我重新修改一下
translations/README-cn.md
Outdated
| <pre> | ||
| "/(.*at)/" => <a href="#learn-regex"><strong>The fat cat sat on the mat</strong></a>. </pre> | ||
| "/(.*at)/" => <a href="#learn-regex"><strong>The fat cat sat on the mat</strong></a>. | ||
| </pre> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为什么要改?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
内容没修改,只是样例的格式调了一下,把 </pre> 换到下一行了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文版的没有换行,这里肯定也不能换行啊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个,<pre> 标签是用来预格式化的文本,原版这个样例的确没换行。比较其他的,比较长的样例都会单独放换行的...,这个主要是原版的头 <pre> 是一行的,换了会对称一些... 这是为了直接看 markdown 文档的话不会有点怪,效果没差
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
真要改也应该单独开一个PR把所有语言的都改了啊。反正我的意见是这种东西应该与原文一致。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也是,不在这个 PR 改这个吧

No description provided.