BaseTools/ECC: Fix an issue of parameter parser
The original solution of getting parameter name is to skip "_" but now it doesn't ignore "_" anymore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
## @file
|
## @file
|
||||||
# This file is used to be the c coding style checking of ECC tool
|
# This file is used to be the c coding style checking of ECC tool
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
# This program and the accompanying materials
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -271,7 +271,7 @@ def GetIdentifierList():
|
|||||||
def StripNonAlnumChars(Str):
|
def StripNonAlnumChars(Str):
|
||||||
StrippedStr = ''
|
StrippedStr = ''
|
||||||
for Char in Str:
|
for Char in Str:
|
||||||
if Char.isalnum():
|
if Char.isalnum() or Char == '_':
|
||||||
StrippedStr += Char
|
StrippedStr += Char
|
||||||
return StrippedStr
|
return StrippedStr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user