@rightcapital/phpdoc-parser 0.3.22--.198.1.0 → 0.3.22--.199.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -553,11 +553,11 @@ class TypeParser {
|
|
|
553
553
|
key = new quote_aware_const_expr_string_node_1.QuoteAwareConstExprStringNode(string_unescaper_1.StringUnescaper.unescapeString(tokens.currentTokenValue()), quote_aware_const_expr_string_node_1.QuoteAwareConstExprStringNode.SINGLE_QUOTED);
|
|
554
554
|
}
|
|
555
555
|
else {
|
|
556
|
-
key = new const_expr_string_node_1.ConstExprStringNode(tokens.currentTokenValue().replace(/(^
|
|
556
|
+
key = new const_expr_string_node_1.ConstExprStringNode(tokens.currentTokenValue().replace(/(^'|'$)/g, ''));
|
|
557
557
|
}
|
|
558
558
|
tokens.next();
|
|
559
559
|
}
|
|
560
|
-
if (tokens.isCurrentTokenType(lexer_1.Lexer.TOKEN_DOUBLE_QUOTED_STRING)) {
|
|
560
|
+
else if (tokens.isCurrentTokenType(lexer_1.Lexer.TOKEN_DOUBLE_QUOTED_STRING)) {
|
|
561
561
|
if (this.quoteAwareConstExprString) {
|
|
562
562
|
key = new quote_aware_const_expr_string_node_1.QuoteAwareConstExprStringNode(string_unescaper_1.StringUnescaper.unescapeString(tokens.currentTokenValue()), quote_aware_const_expr_string_node_1.QuoteAwareConstExprStringNode.DOUBLE_QUOTED);
|
|
563
563
|
}
|