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:
committed by
Yonghong Zhu
parent
709c9fd56b
commit
b1a9e404d4
@ -22,6 +22,7 @@ import CommonDataClass.FdfClass
|
||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||
from Common.MultipleWorkspace import MultipleWorkspace as mws
|
||||
from Common.RangeExpression import RangeExpression
|
||||
from Common.GlobalData import *
|
||||
|
||||
##define T_CHAR_SPACE ' '
|
||||
##define T_CHAR_NULL '\0'
|
||||
@ -934,7 +935,7 @@ class FdfParser(object):
|
||||
|
||||
if not self.__GetNextToken():
|
||||
return False
|
||||
if RangeExpression.RegGuidPattern.match(self.__Token) != None:
|
||||
if gGuidPattern.match(self.__Token) != None:
|
||||
return True
|
||||
else:
|
||||
self.__UndoToken()
|
||||
|
Reference in New Issue
Block a user