             }
             return result.range.location
             }.max()
-        
+
         for index in selection.start.line ... selection.end.line {
             guard let line = invocation.buffer.lines[index] as? NSString else {
                 continue
             }
-            
+
             let range = line.range(of: ":")
             if range.location != NSNotFound {
                 let repeatCount = alignPosition1! - range.location + 1
                 if repeatCount != 0 {
                     let whiteSpaces = String(repeating: " ", count: abs(repeatCount))
-                    
+
                     if repeatCount > 0 {
                         invocation.buffer.lines.replaceObject(at: index, with: line.replacingOccurrences(of: ":", with: "\(whiteSpaces):"))
                     } else {

            return
        }

        var regex: NSRegularExpression?
        do {
            regex = try NSRegularExpression(pattern: "[^+^%^*^^^<^>^&^|^?^=^-](\\s*)(=)[^=]", options: .caseInsensitive)
        } catch _ {
            completionHandler(NSError(domain: "SampleExtension", code: -1, userInfo: [NSLocalizedDescriptionKey: ""]))
            return
        }

        let alignPosition = invocation.buffer.lines.enumerated().map { i, line -> Int in
            guard i >= selection.start.line && i <= selection.end.line,

        for index in selection.start.line ... selection.end.line {
            guard let line = invocation.buffer.lines[index] as? String,
                let result = regex?.firstMatch(in: line, options: .reportProgress, range: NSRange(location: 0, length: line.characters.count)) else {
                    continue
            }

            let range = result.rangeAt(2)
