From f581c77a9337e1134f38cafe30149249431ac469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=C3=A1nh=20Ho=C3=A0ng?= Date: Thu, 18 Mar 2021 14:57:38 +0700 Subject: [PATCH] fix(flow): work around on ini config file to correct ignore options --- src/formatters/IniFormatter.ts | 3 ++- yarn.lock | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/formatters/IniFormatter.ts b/src/formatters/IniFormatter.ts index c7ac4ab..e400a97 100644 --- a/src/formatters/IniFormatter.ts +++ b/src/formatters/IniFormatter.ts @@ -3,7 +3,8 @@ import { Formatter } from "./Formatter"; export class IniFormatter extends Formatter { format(configs: object) { - return encode(configs); + const iniConfigs = encode(configs); + return iniConfigs.replace(/\.\*=true/g, ".*"); } formatFileName(fileName: string): string { diff --git a/yarn.lock b/yarn.lock index ecdbfab..785c660 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,11 +204,16 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== -"@types/node@*", "@types/node@^14": +"@types/node@*": version "14.14.31" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.31.tgz#72286bd33d137aa0d152d47ec7c1762563d34055" integrity sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g== +"@types/node@^14": + version "14.14.35" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.35.tgz#42c953a4e2b18ab931f72477e7012172f4ffa313" + integrity sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag== + "@types/through@*": version "0.0.30" resolved "https://registry.yarnpkg.com/@types/through/-/through-0.0.30.tgz#e0e42ce77e897bd6aead6f6ea62aeb135b8a3895"