From 1b2d0806511613077e36a707f24cae215bfce03f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Feb 2017 02:32:00 +0900 Subject: Refactoring :sparkles: --- src/common/text/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/text/index.js') diff --git a/src/common/text/index.js b/src/common/text/index.js index 636f0c4681..d0ef8674b0 100644 --- a/src/common/text/index.js +++ b/src/common/text/index.js @@ -30,8 +30,8 @@ function analyze(source) { // パース while (source != '') { const parsed = elements.some(el => { - if (el.test(source, i)) { - let tokens = el.parse(source); + let tokens = el(source, i); + if (tokens) { if (!Array.isArray(tokens)) { tokens = [tokens]; } -- cgit v1.3.1-freya