Comparing version 1.2.8 to 1.2.9
@@ -106,3 +106,3 @@ "use strict"; | ||
} | ||
return [4 /*yield*/, compileInline(block.value.trim(), ctx)]; | ||
return [4 /*yield*/, compileInline(utils_1.trimLines(block.value), ctx)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
@@ -184,3 +184,3 @@ case 2: | ||
_b = out; | ||
return [4 /*yield*/, compile(value2.trim(), ctx)]; | ||
return [4 /*yield*/, compile(value2, ctx)]; | ||
case 1: | ||
@@ -225,3 +225,3 @@ out = _b + _c.sent(); | ||
} | ||
return [4 /*yield*/, compile(block.value.trim(), ctx)]; | ||
return [4 /*yield*/, compile(block.value, ctx)]; | ||
case 1: | ||
@@ -280,3 +280,3 @@ result = _a.sent(); | ||
_b = out; | ||
return [4 /*yield*/, compile(value2.trim(), ctx)]; | ||
return [4 /*yield*/, compile(value2, ctx)]; | ||
case 1: | ||
@@ -283,0 +283,0 @@ out = _b + _c.sent(); |
import { IKeyValuePair, MuchResult } from './types'; | ||
export declare function noop(): string; | ||
export declare function trimLines(str: string): string; | ||
export declare function toString(v: any): string; | ||
@@ -4,0 +5,0 @@ export declare function merge(src: IKeyValuePair<any>, dest?: IKeyValuePair<any>): IKeyValuePair<any>; |
@@ -45,2 +45,6 @@ "use strict"; | ||
exports.noop = noop; | ||
function trimLines(str) { | ||
return str.replace(/^[\t\f\v\r ]*\n/g, '').replace(/\r?\n[\t\f\v ]*$/g, '\n'); | ||
} | ||
exports.trimLines = trimLines; | ||
function toString(v) { | ||
@@ -47,0 +51,0 @@ return typeof v === 'undefined' || v === null ? '' : String(v); |
{ | ||
"name": "atat", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"author": "Sergey Golub", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
67047
1269