We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just added this chunk of code and tried to run:
class MarkdownSubreddit: MarkdownLink { private static let regex = "(^|\\s|\\W)(/?r/(\\w+)/?)" override var regex: String { return MarkdownSubreddit.regex } override func match(match: NSTextCheckingResult, attributedString: NSMutableAttributedString) { let subredditName = attributedString.attributedSubstringFromRange(match.rangeAtIndex(3)).string let linkURLString = "http://reddit.com/r/\(subredditName)" formatText(attributedString, range: match.range, link: linkURLString) addAttributes(attributedString, range: match.range, link: linkURLString) } }
Errors:
Argument labels for method 'match(match:attributedString:)' do not match those of overridden method 'match(_:attributedString:)'
'attributedSubstringFromRange' has been renamed to 'attributedSubstring(from:)'
'rangeAtIndex' has been renamed to 'range(at:)'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just added this chunk of code and tried to run:
Errors:
The text was updated successfully, but these errors were encountered: