LinkHeader parsing should use StringParsingBuffer
Created attachment 405692 [details] Patch
Comment on attachment 405692 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405692&action=review > Source/WebCore/loader/LinkHeader.cpp:54 > - if ((chr >= '^' && chr <= 'z') || (chr >= 'A' && chr <= 'Z') || (chr >= '0' && chr <= '9') || (chr >= '!' && chr <= '$') || chr == '&' || chr == '+' || chr == '-' || chr == '.') > + if ((character >= '^' && character <= 'z') || (character >= 'A' && character <= 'Z') || (character >= '0' && character <= '9') || (character >= '!' && character <= '$') || character == '&' || character == '+' || character == '-' || character == '.') > return true; > return false; I’d like to see this be made shorter by using isASCIIAlphanumeric. Also, I’d like to use return rather than if return true else return false.
Committed r265177: <https://trac.webkit.org/changeset/265177> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405692 [details].
<rdar://problem/66427205>