# Check the string name\r
if Name != '':\r
MatchString = gIdentifierPattern.match(Name)\r
- if MatchString is None or MatchString.end(0) != len(Name):\r
+ if MatchString is None:\r
EdkLogger.error('Unicode File Parser', FORMAT_INVALID, 'The string token name %s defined in UNI file %s contains the invalid character.' % (Name, self.File))\r
LanguageList = Item.split(u'#language ')\r
for IndexI in range(len(LanguageList)):\r
# Check the string name\r
if not self.IsCompatibleMode and Name != '':\r
MatchString = gIdentifierPattern.match(Name)\r
- if MatchString is None or MatchString.end(0) != len(Name):\r
+ if MatchString is None:\r
EdkLogger.error('Unicode File Parser', FORMAT_INVALID, 'The string token name %s defined in UNI file %s contains the invalid character.' % (Name, self.File))\r
self.AddStringToList(Name, Language, Value)\r
continue\r