Skip to content

Commit 03393a8

Browse files
committed
Fix "found unknown escape character" while trying to run swiftlint 0.18.1
Also update the smiley face regex check to have a space before the colon so that it doesn't match: fatalError("init(coder:) has not been implemented")
1 parent 862209b commit 03393a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.swiftlint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ disabled_rules:
1717
custom_rules:
1818
smiley_face:
1919
name: "Smiley Face"
20-
regex: "(\:\))"
21-
match_kinds:
20+
regex: '( :\))'
21+
match_kinds:
2222
- comment
2323
- string
2424
message: "A closing parenthesis smiley :) creates a half-hearted smile, and thus is not preferred. Use :]"

0 commit comments

Comments
 (0)