fix bad regex

hash-command-arbitrary
Avril 6 years ago
parent 8a374940e5
commit 3a3cf3d87f
Signed by untrusted user: flanchan
GPG Key ID: 284488987C31F630

@ -1,4 +1,4 @@
var internal_url_re = /(?:>>>)?(?:https?:\/\/)?flanchan\.moe\/s\/((?:\d|\w)(?:\d|\w|\/)*)/;
var internal_url_re = /(?:>>>)?(?:https?:\/\/)?flanchan\.moe\/s\/(.+)/;
/* YOUTUBE */

@ -201,7 +201,7 @@ var OS = OneeSama.prototype;
var break_re = new RegExp("(\\S{" + DEFINES.WORD_LENGTH_LIMIT + "})");
/* internal refs, embeds */
var ref_re = />>(\d+|>\/s\/(?:\w|\d)(?:\w|\d|\/)*|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10})/;
var ref_re = />>(\d+|>\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10})/;
OS.hook = function (name, func) {
var hs = this.hooks[name];

Loading…
Cancel
Save