]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/GlobalData.py
BaseTools: GenFds - simplify testing for Hex number
[mirror_edk2.git] / BaseTools / Source / Python / Common / GlobalData.py
index f58dc5a8dda225a973f57c20abdb2508c28e866c..e3131b86cc60fe4226cb8c99328b65d9bb2a858d 100644 (file)
@@ -62,6 +62,7 @@ gGuidPatternEnd = re.compile(r'{}$'.format(_GuidPattern))
 ## Regular expressions for HEX matching\r
 g4HexChar = re.compile(r'{}{{4}}'.format(_HexChar))\r
 gHexPattern = re.compile(r'0[xX]{}+'.format(_HexChar))\r
+gHexPatternAll = re.compile(r'0[xX]{}+$'.format(_HexChar))\r
 \r
 ## Regular expressions for string identifier checking\r
 gIdentifierPattern = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$', re.UNICODE)\r