import { whitespace } from './patterns.js'; /** Trim whitespace from start of string */ export function trim_start(str: string) { let i = 0; while (whitespace.test(str[i])) i += 1; return str.slice(i); } /** Trim whitespace from end of string */ export function trim_end(str: string) { let i = str.length; while (whitespace.test(str[i - 1])) i -= 1; return str.slice(0, i); } on/atom+xml'/>
![]() |
index : astro | |
Unnamed repository; edit this file 'description' to name the repository. |
summaryrefslogtreecommitdiff |