You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/pac3/editor/client/saved_parts.lua
+15-22Lines changed: 15 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -213,32 +213,25 @@ function pace.LoadParts(name, clear, override_part)
213
213
pac.dprint("loading Parts %s", name)
214
214
215
215
ifname:find("https?://") then
216
+
localfunctioncallback(str)
217
+
ifstring.find( str, "<!DOCTYPE html>" ) then
218
+
pace.MessagePrompt("Invalid URL, .txt expected, but the website returned a HTML file. If you're using Github then use the RAW option.", "URL Failed", "OK")
219
+
return
220
+
end
216
221
217
-
localext=name:match("/.+%.(%a+)[%?&]?.-")
218
-
ifext=="txt" then
219
-
localfunctioncallback(str)
220
-
ifstring.find( str, "<!DOCTYPE html>" ) then
221
-
pace.MessagePrompt("Invalid URL, the website returned a HTML file. If you're using Github then use the RAW option.", "URL Failed", "OK")
0 commit comments