mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 16:28:19 +00:00
deeplink arcade orders
This commit is contained in:
parent
b848889e3d
commit
67beb4b37b
1 changed files with 8 additions and 1 deletions
|
|
@ -14,7 +14,6 @@ module Sinatra
|
|||
text.gsub! /Shop order (rec\w+)/ do
|
||||
pretty_shop_link $1
|
||||
end
|
||||
text
|
||||
end
|
||||
|
||||
def link_shoporders(text)
|
||||
|
|
@ -22,9 +21,17 @@ module Sinatra
|
|||
pretty_shop_link $1
|
||||
end
|
||||
end
|
||||
|
||||
def link_arcade_orders(text)
|
||||
text.gsub! /\(arcade:orders:(rec\w+)\)/ do
|
||||
"Arcade order [#{$1}](https://airtable.com/app4kCWulfB02bV8Q/tblNUDETwMdUlBCSM/#{$1})"
|
||||
end
|
||||
end
|
||||
|
||||
def preprocess(text)
|
||||
link_shoporders(text)
|
||||
link_qm_orders(text)
|
||||
link_arcade_orders(text)
|
||||
end
|
||||
end
|
||||
def md(markdown)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue