diff options
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r-- | cli/tools/check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs index 804519e84..91643496a 100644 --- a/cli/tools/check.rs +++ b/cli/tools/check.rs @@ -321,7 +321,7 @@ fn get_tsc_roots( /// Matches the `@ts-check` pragma. static TS_CHECK_RE: Lazy<Regex> = - Lazy::new(|| Regex::new(r#"(?i)^\s*@ts-check(?:\s+|$)"#).unwrap()); + lazy_regex::lazy_regex!(r#"(?i)^\s*@ts-check(?:\s+|$)"#); fn has_ts_check(media_type: MediaType, file_text: &str) -> bool { match &media_type { |