fix: avoid path trailing slash stripped in older os versions#695
Conversation
Co-authored-by: esterTion <lcz970@126.com>
|
@esterTion Really? I didn't reproduce that. But I can't have tested it on a really old system.
Actually looking at the documentation for Swift We're not using And I remember doing tests for both code paths that passed, I don't know why it's failing now. |
@esterTion I just tested and neither import Foundation
let nsurl = NSURL(string: "http://example.com/dir/?query")!
let url = URL(string: "http://example.com/dir/?query")!
print(nsurl.path)
print(url.path) |
|
sry posted on wrong thread I now think this should be considered a platform bug |
|
Where is your breakpoint? In the userscripts/xcode/Ext-Safari/Functions.swift Lines 1021 to 1036 in 08523ff Then what you see may be the Please try running just the code I posted above in the |




fix #694
Thanks to @esterTion for reporting, debugging and finding this issue.