Skip to content

Commit

Permalink
Merge pull request #26 from bytedance/fix/fix_feature_unescape
Browse files Browse the repository at this point in the history
fix feature unescape
  • Loading branch information
AoranAllen authored Sep 29, 2024
2 parents 264e0ab + ecc1ad2 commit 43a40ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/feature_preparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (f *featurePreParserVisitor) VisitNumConst(ctx *parser.NumConstContext) int
}

func (f *featurePreParserVisitor) VisitStrConst(ctx *parser.StrConstContext) interface{} {
return StrippingQuotation(ctx.StringType().GetText())
return tools.UnescapeString(StrippingQuotation(ctx.StringType().GetText()))
}

func (f *featurePreParserVisitor) VisitBoolConst(ctx *parser.BoolConstContext) interface{} {
Expand Down

0 comments on commit 43a40ec

Please sign in to comment.