From b990448a4253a967fb6b7df4cf7afe05df67b630 Mon Sep 17 00:00:00 2001 From: Dmytro Zozulia Date: Mon, 31 Jul 2017 17:23:38 +0200 Subject: [PATCH] Fixed Readme custom rule regexp --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2744746af2..617303d909 100644 --- a/README.md +++ b/README.md @@ -315,8 +315,8 @@ following syntax: ```yaml custom_rules: pirates_beat_ninjas: # rule identifier - included: ".*.swift" # regex that defines paths to include during linting. optional. - excluded: ".*Test.swift" # regex that defines paths to exclude during linting. optional + included: ".*\\.swift" # regex that defines paths to include during linting. optional. + excluded: ".*Test\\.swift" # regex that defines paths to exclude during linting. optional name: "Pirates Beat Ninjas" # rule name. optional. regex: "([n,N]inja)" # matching pattern match_kinds: # SyntaxKinds to match. optional.