BaseTools: use new shared GUID regular expressions

remove local variables that are GUID matching and replace with shared
expression.

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@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>
This commit is contained in:
Carsey, Jaben
2018-03-17 07:27:41 +08:00
committed by Yonghong Zhu
parent 709c9fd56b
commit b1a9e404d4
4 changed files with 9 additions and 11 deletions

View File

@ -1136,7 +1136,7 @@ class FdfParser:
if not self.__GetNextToken():
return False
if RangeExpression.RegGuidPattern.match(self.__Token) != None:
if gGuidPattern.match(self.__Token) != None:
return True
else:
self.__UndoToken()