mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: split query by any whitespace
This commit is contained in:
@ -41,7 +41,7 @@ class PostMainController extends BasePostController {
|
|||||||
)
|
)
|
||||||
: uri.formatClientLink("post", ctx.parameters.id);
|
: uri.formatClientLink("post", ctx.parameters.id);
|
||||||
router.replace(url, ctx.state, false);
|
router.replace(url, ctx.state, false);
|
||||||
parameters.query.split(" ").forEach((item) => {
|
misc.splitByWhitespace(parameters.query).forEach((item) => {
|
||||||
const found = item.match(/^pool:([0-9]+)/i);
|
const found = item.match(/^pool:([0-9]+)/i);
|
||||||
if (found) {
|
if (found) {
|
||||||
const activePool = parseInt(found[1]);
|
const activePool = parseInt(found[1]);
|
||||||
|
Reference in New Issue
Block a user