We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dfb030 commit c90dc5dCopy full SHA for c90dc5d
Source/String.swift
@@ -102,9 +102,9 @@ internal extension String {
102
newString += "<"
103
break
104
}
105
-
+
106
//This will check for consecutive '<' characters (i.e. <underline> < </underline>)
107
- if(String(self[self.index(self.startIndex, offsetBy: scanner.scanLocation)]) == "<") {
+ if scanner.scanLocation < self.count, String(self[self.index(self.startIndex, offsetBy: scanner.scanLocation)]) == "<" {
108
//The next loop will catch the next '<'
109
newString += "<" + tagString
110
continue
0 commit comments