mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user