[text] Store pattern as const char* to reduce memory usage

This commit is contained in:
J. Nick Koston
2025-12-06 23:55:15 -06:00
parent 789faca7c4
commit e63673f5ef
3 changed files with 3 additions and 2 deletions
@@ -142,7 +142,7 @@ void WebServer::handle_index_request(AsyncWebServerRequest *request) {
stream.print(R"(" maxlength=")");
stream.print(text->traits.get_max_length());
stream.print(R"(" pattern=")");
stream.print(text->traits.get_pattern_ref().c_str());
stream.print(text->traits.get_pattern_c_str());
stream.print(R"(" value=")");
stream.print(text->state.c_str());
stream.print(R"("/>)");