Fixed SyaNodeParser false positive recognition issue
This commit is contained in:
+3
-3
@@ -221,7 +221,7 @@ class Concept:
|
||||
Create the key for this concept.
|
||||
Must be called only when the concept if fully initialized
|
||||
|
||||
The method is not called set_key to make sure that no other class set the key by mistake
|
||||
The method is not called 'set_key' to make sure that no other class set the key by mistake
|
||||
:param tokens:
|
||||
:return:
|
||||
"""
|
||||
@@ -248,8 +248,8 @@ class Concept:
|
||||
if token.value in variables:
|
||||
key += VARIABLE_PREFIX + str(variables.index(token.value))
|
||||
else:
|
||||
value = token.value[1:-1] if token.type == TokenKind.STRING else token.value
|
||||
key += value
|
||||
#value = token.value[1:-1] if token.type == TokenKind.STRING else token.value
|
||||
key += token.value
|
||||
first = False
|
||||
|
||||
self.metadata.key = key
|
||||
|
||||
Reference in New Issue
Block a user