mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
[ci skip][AUTO]: Automated clang-format update: 771de57fc2c1edbaaf3ae94e77f9801b0379cc6c (#10469) (#10472)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
@@ -61,7 +61,7 @@ static bool JSB_loadFont(se::State &s) {
|
||||
SE_PRECONDITION2(ok, false, "JSB_loadFont : Error processing argument: source");
|
||||
|
||||
ccstd::string fontFilePath;
|
||||
std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)");
|
||||
std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)");
|
||||
std::match_results<ccstd::string::const_iterator> results;
|
||||
if (std::regex_search(source.cbegin(), source.cend(), results, re)) {
|
||||
fontFilePath = results[1].str();
|
||||
|
||||
Reference in New Issue
Block a user