Check for 516 byond:// hrefs (#16359)

* Add a lint to check for hrefs that don't start with byond://

* Regex convert href links

* Regex convert _src_ as well

* Clean up the last few

* Missed a few
This commit is contained in:
ShadowLarkens
2024-12-11 08:33:17 +10:00
committed by GitHub
parent e2dfef5732
commit 5a47c9b8a1
200 changed files with 1160 additions and 1328 deletions
@@ -11,17 +11,17 @@
var/list/my_list = data
var/t = "<h2>[src]</h2><br>"
t += "List length: [my_list.len]<br>"
t += "<a href='?src=\ref[src]'>\[Refresh\]</a> | "
t += "<a href='?src=\ref[src];add=1'>\[Add\]</a> | "
t += "<a href='?src=\ref[src];swap=1'>\[Swap\]</a> | "
t += "<a href='?src=\ref[src];clear=1'>\[Clear\]</a><br>"
t += "<a href='byond://?src=\ref[src]'>\[Refresh\]</a> | "
t += "<a href='byond://?src=\ref[src];add=1'>\[Add\]</a> | "
t += "<a href='byond://?src=\ref[src];swap=1'>\[Swap\]</a> | "
t += "<a href='byond://?src=\ref[src];clear=1'>\[Clear\]</a><br>"
t += "<hr>"
var/i = 0
for(var/line in my_list)
i++
t += "#[i] | [display_data(line)] | "
t += "<a href='?src=\ref[src];edit=1;pos=[i]'>\[Edit\]</a> | "
t += "<a href='?src=\ref[src];remove=1;pos=[i]'>\[Remove\]</a><br>"
t += "<a href='byond://?src=\ref[src];edit=1;pos=[i]'>\[Edit\]</a> | "
t += "<a href='byond://?src=\ref[src];remove=1;pos=[i]'>\[Remove\]</a><br>"
user << browse(t, "window=list_pin_\ref[src];size=500x400")
/datum/integrated_io/list/proc/add_to_list(mob/user, var/new_entry)