Skip to content

Commit 6177a4c

Browse files
authored
fix: fix DataAPI.cpp
1 parent e9855e5 commit 6177a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/api/DataAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ Local<Array> objectificationMoneyHistory(const string& res) {
638638
[&](std::string_view str) -> bool {
639639
auto [whole, fromName, toName, money, time, note] =
640640
ctre::match<R"(^(.*) -> (.*) (\d+) (\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}) \((.*)\)$)">(str);
641-
if (time.empty()) return true;
641+
if (time.to_view().empty()) return true;
642642
Local<Object> obj = Object::newObject();
643643
obj.set("from", String::newString(fromName));
644644
obj.set("to", String::newString(toName));

0 commit comments

Comments
 (0)