Skip to content

Commit

Permalink
[#49] build: (minor) hwsku_json_checker .. have improper regex escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonic-builder OSSO committed Nov 22, 2024
1 parent e83d437 commit 4d7e453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sonic-device-data/tests/hwsku_json_checker
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sys
# Global variable
PORT_ATTRIBUTES = ["default_brkout_mode"]
OPTIONAL_PORT_ATTRIBUTES = ["fec", "autoneg", "port_type", "subport", "role"]
PORT_REG = "Ethernet(\d+)"
PORT_REG = r"Ethernet(\d+)"
HWSKU_JSON = '*hwsku.json'
INTF_KEY = "interfaces"

Expand Down
2 changes: 1 addition & 1 deletion src/sonic-device-data/tests/platform_json_checker
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sys
# Global variable
PORT_ATTRIBUTES = ["index", "lanes", "breakout_modes"]
ATTR_LEN = len(PORT_ATTRIBUTES)
PORT_REG = "Ethernet(\d+)"
PORT_REG = r"Ethernet(\d+)"
PLATFORM_JSON = '*platform.json'
INTF_KEY = "interfaces"
CHASSIS_KEY = "chassis"
Expand Down

0 comments on commit 4d7e453

Please sign in to comment.