mirror of https://github.com/sveltejs/svelte
parent
d84f3153cb
commit
d883e68298
@ -1,9 +1,9 @@
|
|||||||
import { regex_starts_with_whitespace, regex_ends_with_whitespace } from './patterns';
|
import { regex_starts_with_whitespaces, regex_ends_with_whitespaces } from './patterns';
|
||||||
|
|
||||||
export function trim_start(str: string) {
|
export function trim_start(str: string) {
|
||||||
return str.replace(regex_starts_with_whitespace, '');
|
return str.replace(regex_starts_with_whitespaces, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function trim_end(str: string) {
|
export function trim_end(str: string) {
|
||||||
return str.replace(regex_ends_with_whitespace, '');
|
return str.replace(regex_ends_with_whitespaces, '');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in new issue