Skip to content

Commit 4b2292e

Browse files
authored
Merge pull request #79 from fledge-iot/FOGL-7697
FOGL-7697: Updated regular expression for RECEIVE_NOTIFICATION
2 parents ebc37f3 + 540c20a commit 4b2292e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C/services/notification/include/notification_api.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ using HttpServer = SimpleWeb::Server<SimpleWeb::HTTP>;
2020
* URL for each API entry point
2121
*/
2222
#define ESCAPE_SPECIAL_CHARS "\\{\\}\\\"\\(\\)\\!\\[\\]\\^\\$\\.\\|\\?\\*\\+\\-"
23-
#define RECEIVE_NOTIFICATION "^/notification/reading/asset/([A-Za-z][a-zA-Z0-9_%\\-\\.]*)$"
23+
#define RECEIVE_NOTIFICATION "^/notification/reading/asset/([A-Za-z0-9][a-zA-Z0-9_%\\-\\.]*)$"
2424
#define RECEIVE_AUDIT_NOTIFICATION "^/notification/reading/audit/([A-Za-z][a-zA-Z0-9_%\\-\\.]*)$"
25-
#define RECEIVE_STATS_NOTIFICATION "^/notification/reading/stat/([A-Za-z][a-zA-Z0-9_%\\-\\.]*)$"
26-
#define RECEIVE_STATS_RATE_NOTIFICATION "^/notification/reading/rate/([A-Za-z][a-zA-Z0-9_%\\-\\.]*)$"
25+
#define RECEIVE_STATS_NOTIFICATION "^/notification/reading/stat/([A-Za-z0-9][a-zA-Z0-9_%\\-\\.]*)$"
26+
#define RECEIVE_STATS_RATE_NOTIFICATION "^/notification/reading/rate/([A-Za-z0-9][a-zA-Z0-9_%\\-\\.]*)$"
2727
#define GET_NOTIFICATION_INSTANCES "^/notification$"
2828
#define GET_NOTIFICATION_DELIVERY "^/notification/delivery$"
2929
#define GET_NOTIFICATION_RULES "^/notification/rules$"

0 commit comments

Comments
 (0)