Skip to content

Commit 86efa6c

Browse files
ci(pre-commit): Apply automatic fixes
1 parent b33932d commit 86efa6c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/ESPAsyncWebServer.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -732,16 +732,16 @@ class AsyncWebServerRequest {
732732

733733
class AsyncURIMatcher {
734734
private:
735-
// Matcher types are internal, not part of public API
735+
// Matcher types are internal, not part of public API
736736
enum class Type {
737-
None, // default state: matcher does not match anything
738-
Auto, // parse _uri at construct time and infer match type(s): _uri may be transformed to remove wildcards
739-
All, // matches everything
740-
Exact, // matches equivalent to regex: ^{_uri}$
741-
Prefix, // matches equivalent to regex: ^{_uri}.*
742-
Extension, // non-regular match: /pattern../*.ext
743-
BackwardCompatible, // matches equivalent to regex: ^{_uri}(/.*)?$
744-
Regex, // matches _url as regex
737+
None, // default state: matcher does not match anything
738+
Auto, // parse _uri at construct time and infer match type(s): _uri may be transformed to remove wildcards
739+
All, // matches everything
740+
Exact, // matches equivalent to regex: ^{_uri}$
741+
Prefix, // matches equivalent to regex: ^{_uri}.*
742+
Extension, // non-regular match: /pattern../*.ext
743+
BackwardCompatible, // matches equivalent to regex: ^{_uri}(/.*)?$
744+
Regex, // matches _url as regex
745745
};
746746

747747
public:
@@ -853,9 +853,9 @@ class AsyncURIMatcher {
853853
#endif
854854

855855
// extract matcher type from _flags
856-
const intptr_t flags = _flags >> 1; // shift off disambiguation bit;
856+
const intptr_t flags = _flags >> 1; // shift off disambiguation bit;
857857
const Type type = static_cast<Type>(flags & 0xFFFF); // Type is lower 16 bits
858-
const uint16_t modifiers = flags >> 16; // Modifiers are upper 16 bits
858+
const uint16_t modifiers = flags >> 16; // Modifiers are upper 16 bits
859859

860860
// apply modifiers
861861
String path = request->url();
@@ -864,7 +864,7 @@ class AsyncURIMatcher {
864864
}
865865

866866
switch (type) {
867-
case Type::All: return true;
867+
case Type::All: return true;
868868
case Type::Exact: return (_value == path);
869869
case Type::Prefix: return path.startsWith(_value);
870870
case Type::Extension:
@@ -985,7 +985,7 @@ class AsyncURIMatcher {
985985
// fields
986986
String _value;
987987
union {
988-
intptr_t _flags; // type and flags packed together
988+
intptr_t _flags; // type and flags packed together
989989
#ifdef ASYNCWEBSERVER_REGEX
990990
// Overlay the pattern pointer storage with the type. It is treated as a tagged pointer:
991991
// if any of the LSBs are set, it stores type, as a valid object must be aligned and so

0 commit comments

Comments
 (0)