From 003041715e3f533e43221d4a7863c8a4ef1f6b3c Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 9 Nov 2021 07:45:04 -0500 Subject: [PATCH] use snake_case --- src/compiler/utils/patterns.ts | 4 ++-- src/compiler/utils/trim.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/utils/patterns.ts b/src/compiler/utils/patterns.ts index 06b2739259..0728035a48 100644 --- a/src/compiler/utils/patterns.ts +++ b/src/compiler/utils/patterns.ts @@ -1,5 +1,5 @@ export const whitespace = /[ \t\r\n]/; -export const startWhitespace = /^[ \t\r\n]*/; -export const endWhitespace = /[ \t\r\n]*$/; +export const start_whitespace = /^[ \t\r\n]*/; +export const end_whitespace = /[ \t\r\n]*$/; export const dimensions = /^(?:offset|client)(?:Width|Height)$/; diff --git a/src/compiler/utils/trim.ts b/src/compiler/utils/trim.ts index f9166fb4df..05af79cc90 100644 --- a/src/compiler/utils/trim.ts +++ b/src/compiler/utils/trim.ts @@ -1,9 +1,9 @@ -import { startWhitespace, endWhitespace } from './patterns'; +import { start_whitespace, end_whitespace } from './patterns'; export function trim_start(str: string) { - return str.replace(startWhitespace, ''); + return str.replace(start_whitespace, ''); } export function trim_end(str: string) { - return str.replace(endWhitespace, ''); + return str.replace(end_whitespace, ''); }