You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to use GUIDs as tag names, but have a trouble with parsing them - the following exception occurs: Mustachio.IndexedParseException: The path '110E6231-BA3E-40DD-AF62-9802DCC02B61' is not valid. Please see documentation for examples of valid paths.
However when I remove all dashes from the tag name all works successfully. Is that an intentional feature or rather a bug?
Code example:
varguidTemplate1Txt="There was GUID with dashes: {{110E6231-BA3E-40DD-AF62-9802DCC02B61}}";varguidTemplate2Txt="There was GUID w/o dashes: {{110E6231BA3E40DDAF629802DCC02B61}}";vartemplate1=Mustachio.Parser.Parse(guidTemplate1Txt);vartemplate2=Mustachio.Parser.Parse(guidTemplate2Txt);varmodel1=newDictionary<string,obj>(){{"110E6231-BA3E-40DD-AF62-9802DCC02B61","content"}};varmodel2=newDictionary<string,obj>(){{"110E6231BA3E40DDAF629802DCC02B61","content"}};varcontent1=template1(model1);// Mustachio.IndexedParseException is thrown therevarcontent2=template2(model2);// Works successfully
The text was updated successfully, but these errors were encountered:
ArtemyB
changed the title
Error occurs while parsing tag names containing dashes ("-")
Error occurs while parsing tag names containing hyphen-minus characters ("-", unicode number: U+002D)
Sep 10, 2019
Wanted to use GUIDs as tag names, but have a trouble with parsing them - the following exception occurs:
Mustachio.IndexedParseException: The path '110E6231-BA3E-40DD-AF62-9802DCC02B61' is not valid. Please see documentation for examples of valid paths.
However when I remove all dashes from the tag name all works successfully. Is that an intentional feature or rather a bug?
Code example:
The text was updated successfully, but these errors were encountered: