fix: 处理多出的一个括号。(上个版本修改不正确)

This commit is contained in:
msojocs 2025-02-17 23:09:36 +08:00
parent f31c7dbe8f
commit 5ca14f224f
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
## 🌈 v0.1.3 / 2025-02-17
🐞 Bug Fixes
- `WXML::Rewrite::RewriteImg`: 输出了多余的右括号。(上个版本修改不正确)
## 🌈 v0.1.2 / 2025-02-16
🐞 Bug Fixes

View File

@ -1,5 +1,6 @@
#include "../include/wxml.h"
#include <cstdio>
namespace WXML {
@ -301,12 +302,12 @@ namespace WXML {
{
std::stringstream v29;
v29 << "url(" << sa << "-do-not-use-local-path-" << a3;
v29 << "&" << a4 << "&" << a5;
v29 << "&" << a4 << "&" << a5 << ")";
std::string v26 = v29.str();
a2 += v26;
result = 1;
}
if (++i == v21.size() - 1)
if (++i == v21.size())
{
v17 = 0;
}