Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeybannov committed Jul 29, 2024
1 parent dc1f902 commit ecb6cba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/nginx/onlyoffice.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ map $request_uri $content_security_policy {
}

map $request_time $request_time_ms {
# Simple case for 0.000
~^0\.000$ 0;
# If 0 before decimal place, must remove leading zeros after it
~^0\.(?:0*)([^0].*)$ $1;
# Otherwise just concatenate the full pre- & post-decimal parts
~^([^0][^.]*)\.(.*)$ $1$2;
}

Expand Down

0 comments on commit ecb6cba

Please sign in to comment.