Skip to content
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

Bug in Chapter c05_08 #24

Open
R3c0ger opened this issue Jun 18, 2024 · 0 comments
Open

Bug in Chapter c05_08 #24

R3c0ger opened this issue Jun 18, 2024 · 0 comments

Comments

@R3c0ger
Copy link

R3c0ger commented Jun 18, 2024

I have found an issue in Section 5.8 of the eBook regarding the regular expression used for adding quotes to headers copied from the browser. The current regular expression and replacement command will include any spaces after the colon inside the quotes, which is incorrect.
5.8节中使用的正则表达式和替换命令会将冒号后的空格包含在引号内,这恐怕不是咱想达到的效果(笑)。

修改建议:

第一行【查找】:  (.*?):\s*(.*)
第二行【替换】:  '$1': '$2',

图片

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant