Remove some format rule (#10919)

* remove some rules
* format all codes with new format rule
This commit is contained in:
minggo
2022-05-04 13:09:24 +08:00
committed by GitHub
parent e9a4bdd4dc
commit 271cc5cf23
1148 changed files with 32411 additions and 34416 deletions
@@ -46,9 +46,9 @@ const ccstd::unordered_map<ccstd::string, ccstd::string> &getFontFamilyNameMap()
}
static bool JSB_loadFont(se::State &s) {
const auto & args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
const auto &args = s.args();
size_t argc = args.size();
CC_UNUSED bool ok = true;
if (argc >= 1) {
s.rval().setNull();
@@ -60,8 +60,8 @@ static bool JSB_loadFont(se::State &s) {
ok &= sevalue_to_native(args[1], &source);
SE_PRECONDITION2(ok, false, "JSB_loadFont : Error processing argument: source");
ccstd::string fontFilePath;
std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)");
ccstd::string fontFilePath;
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();