diff options
-rwxr-xr-x[-rw-r--r--] | osurl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,3 +1,5 @@ +#!/usr/bin/lua + local lpeg = require 'lpeg' local P,C,Cs,Cf,R = lpeg.P, lpeg.C, lpeg.Cs, lpeg.Cf, lpeg.R @@ -36,6 +38,4 @@ for k,v in pairs(patterns) do end local pat = Cs((bugpat + P(1))^0) -print(pat:match("gh#python/cpython#123")) -print(pat:match("lp#123456")) -print(pat:match("bramboříček")) +os.execute("xdg-open " .. pat:match(arg[1])) |