mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
9 lines
211 B
JavaScript
9 lines
211 B
JavaScript
function parse(value){
|
|
if (typeof value === "number") return value;
|
|
else if (value.toString().includes("/")) return encodeURIComponent(value);
|
|
else return parseInt(issueId);
|
|
}
|
|
|
|
module.exports = {
|
|
parse
|
|
} |