Commit 4242ad39 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for UUID validation

parent b84d1cd8
...@@ -400,6 +400,6 @@ patch_op_type_t api_conv::string_to_patch_operation(const std::string& str) { ...@@ -400,6 +400,6 @@ patch_op_type_t api_conv::string_to_patch_operation(const std::string& str) {
bool api_conv::validate_uuid(const std::string& str) { bool api_conv::validate_uuid(const std::string& str) {
// should be verified with Capital letter // should be verified with Capital letter
static const std::regex e( static const std::regex e(
"[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}"); "[a-f0-9]{8}-[a-f0-9]{4}-[0-5][a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}");
return regex_match(str, e); return regex_match(str, e);
} }
...@@ -269,7 +269,7 @@ void nrf_app::handle_update_nf_instance( ...@@ -269,7 +269,7 @@ void nrf_app::handle_update_nf_instance(
// timer // timer
if (sn.get()->unsubscribe_heartbeat_timeout_nfregistration()) { if (sn.get()->unsubscribe_heartbeat_timeout_nfregistration()) {
// Sleep 10ms to avoid Boost connection related issue // Sleep 10ms to avoid Boost connection related issue
unsigned int microsecond = 10000; // 10ms unsigned int microsecond = 50000; // 50ms
usleep(microsecond); usleep(microsecond);
ms = std::chrono::duration_cast<std::chrono::milliseconds>( ms = std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now().time_since_epoch()) std::chrono::system_clock::now().time_since_epoch())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment