diff --git a/packages/filter.punches/spec/filterBehavior.ts b/packages/filter.punches/spec/filterBehavior.ts index 0fb010f91..b3e13494f 100644 --- a/packages/filter.punches/spec/filterBehavior.ts +++ b/packages/filter.punches/spec/filterBehavior.ts @@ -6,13 +6,6 @@ import { filters } from '../dist' import { assert } from 'chai' declare let ko: KnockoutInstance -/* can be remove https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.isarray -if (!Array.isArray) { - Array.isArray = function (arg) { - return Object.prototype.toString.call(arg) === '[object Array]' - } -} -*/ describe('Text filters preprocessor', function () { const filterPreprocessor = function (string) { diff --git a/packages/provider.mustache/src/mustacheParser.ts b/packages/provider.mustache/src/mustacheParser.ts index 12595d444..411ac301b 100644 --- a/packages/provider.mustache/src/mustacheParser.ts +++ b/packages/provider.mustache/src/mustacheParser.ts @@ -69,7 +69,7 @@ class Text extends Interpolated { /** * Interpolation Parsing */ -export function* innerParse(text: string) { +function* innerParse(text: string) { const innerMatch = text.match(INNER_EXPRESSION) if (innerMatch) { const [pre, inner, post] = innerMatch.slice(1) @@ -81,7 +81,7 @@ export function* innerParse(text: string) { } } -export function* parseOuterMatch(outerMatch?: RegExpMatchArray | null) { +function* parseOuterMatch(outerMatch?: RegExpMatchArray | null) { if (!outerMatch) { return }