We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
参考demo
<code-diff old-string="const a = 2;" :new-string="'const a = 2;\nlet b = 3;'" ></code-diff>
期望const a = 2;这段应该不是差异 有处理办法吗
const a = 2;
The text was updated successfully, but these errors were encountered:
@09473ZH
Sorry, something went wrong.
检查新旧字符串是否都以换行符\n结尾( 正则 /\n$/),如果不是的话,就在字符串末尾添加换行符,确保新旧字符串都是以换行符结尾,就可以处理这种情况了。
No branches or pull requests
参考demo
期望
const a = 2;
这段应该不是差异有处理办法吗
The text was updated successfully, but these errors were encountered: