diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-20 23:51:44 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-26 14:44:35 +0800 |
commit | 6553c61724f74bd160d2002f5aa768aa687a2af4 (patch) | |
tree | c5dc5926ad318c28ef513d21362bacd4619dbc8c /BaseTools/Source/Python/Common | |
parent | 992fbe3519c0a0b643b93ecbf9bd6297c9117714 (diff) | |
download | edk2-6553c61724f74bd160d2002f5aa768aa687a2af4.tar.gz edk2-6553c61724f74bd160d2002f5aa768aa687a2af4.tar.bz2 edk2-6553c61724f74bd160d2002f5aa768aa687a2af4.zip |
BaseTools: GenFds - simplify testing for Hex number
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/GlobalData.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Common/GlobalData.py b/BaseTools/Source/Python/Common/GlobalData.py index f58dc5a8dd..e3131b86cc 100644 --- a/BaseTools/Source/Python/Common/GlobalData.py +++ b/BaseTools/Source/Python/Common/GlobalData.py @@ -62,6 +62,7 @@ gGuidPatternEnd = re.compile(r'{}$'.format(_GuidPattern)) ## Regular expressions for HEX matching
g4HexChar = re.compile(r'{}{{4}}'.format(_HexChar))
gHexPattern = re.compile(r'0[xX]{}+'.format(_HexChar))
+gHexPatternAll = re.compile(r'0[xX]{}+$'.format(_HexChar))
## Regular expressions for string identifier checking
gIdentifierPattern = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$', re.UNICODE)
|