4
4
import { walk } from 'zimmerframe' ;
5
5
import { object } from '../../../../../utils/ast.js' ;
6
6
import * as b from '#compiler/builders' ;
7
- import * as w from '../../../../../warnings.js' ;
8
7
import { sanitize_template_string } from '../../../../../utils/sanitize_template_string.js' ;
9
- import {
10
- regex_is_valid_identifier ,
11
- regex_bidirectional_control_characters
12
- } from '../../../../patterns.js' ;
8
+ import { regex_is_valid_identifier } from '../../../../patterns.js' ;
13
9
import is_reference from 'is-reference' ;
14
10
import { dev , is_ignored , locator } from '../../../../../state.js' ;
15
11
import { create_derived } from '../../utils.js' ;
@@ -81,9 +77,6 @@ export function build_template_chunk(
81
77
// If we have a single expression, then pass that in directly to possibly avoid doing
82
78
// extra work in the template_effect (instead we do the work in set_text).
83
79
if ( evaluated . is_known ) {
84
- if ( regex_bidirectional_control_characters . test ( ( evaluated . value ?? '' ) + '' ) ) {
85
- w . bidirectional_control_characters ( node ) ;
86
- }
87
80
value = b . literal ( ( evaluated . value ?? '' ) + '' ) ;
88
81
}
89
82
@@ -103,9 +96,6 @@ export function build_template_chunk(
103
96
}
104
97
105
98
if ( evaluated . is_known ) {
106
- if ( regex_bidirectional_control_characters . test ( ( evaluated . value ?? '' ) + '' ) ) {
107
- w . bidirectional_control_characters ( node ) ;
108
- }
109
99
quasi . value . cooked += ( evaluated . value ?? '' ) + '' ;
110
100
} else {
111
101
if ( ! evaluated . is_defined ) {
0 commit comments