Skip to content

Commit 4496510

Browse files
committed
address feedback
1 parent 647c932 commit 4496510

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/biome_js_analyze/src/lint/nursery/no_jsx_literals.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use biome_analyze::{
44
use biome_console::markup;
55
use biome_js_syntax::{
66
AnyJsExpression, AnyJsLiteralExpression, JsFileSource, JsStringLiteralExpression, JsxAttribute,
7-
JsxExpressionAttributeValue, JsxString, JsxText,
7+
JsxExpressionAttributeValue, JsxString, JsxText, inner_string_text,
88
};
99
use biome_rowan::{AstNode, AstNodeList, TextRange, declare_node_union};
1010
use biome_rule_options::no_jsx_literals::NoJsxLiteralsOptions;
@@ -189,12 +189,12 @@ impl Rule for NoJsxLiterals {
189189
};
190190

191191
for allowed_string in &options.allowed_strings {
192-
if value_token.text() == allowed_string.as_ref() {
192+
if inner_string_text(&value_token) == allowed_string.as_ref() {
193193
return None;
194194
}
195195
}
196196

197-
if value_token.text().trim().is_empty() {
197+
if inner_string_text(&value_token).trim().is_empty() {
198198
return None;
199199
}
200200

0 commit comments

Comments
 (0)