Skip to content

Commit 78f085c

Browse files
committed
Update
1 parent 14167e9 commit 78f085c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Sources/SuggestionWidget/SyntaxHighlighting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func convertToCodeLines(
115115

116116
// use regex to replace all spaces to a middle dot
117117
do {
118-
let regex = try NSRegularExpression(pattern: #"\s*"#, options: [])
118+
let regex = try NSRegularExpression(pattern: "[ ]*", options: [])
119119
let result = regex.matches(
120120
in: mutable.string,
121121
range: NSRange(location: 0, length: mutable.mutableString.length)

0 commit comments

Comments
 (0)