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, ''); }