mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
allow negative values for synctex positions
This commit is contained in:
@@ -151,9 +151,9 @@ module.exports = CompileController =
|
||||
{page, h, v} = req.query
|
||||
if not page?.match(/^\d+$/)
|
||||
return next(new Error("invalid page parameter"))
|
||||
if not h?.match(/^\d+\.\d+$/)
|
||||
if not h?.match(/^-?\d+\.\d+$/)
|
||||
return next(new Error("invalid h parameter"))
|
||||
if not v?.match(/^\d+\.\d+$/)
|
||||
if not v?.match(/^-?\d+\.\d+$/)
|
||||
return next(new Error("invalid v parameter"))
|
||||
# whether this request is going to a per-user container
|
||||
CompileController._compileAsUser req, (error, user_id) ->
|
||||
|
||||
Reference in New Issue
Block a user