Skip to content

Commit

Permalink
Patch 12
Browse files Browse the repository at this point in the history
  • Loading branch information
lunatic-fox committed Apr 22, 2024
1 parent c7f6191 commit 73e033c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/res/functions/requestObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default function requestObject(q: URLSearchParams) {
resObject.tag = v

// Version
if (k.match(/^v(ersion)?$/) && v.match(/^((o|p|l)w?|(original|plain|line)(-wordmark)?)$/)) {
const fullName = v.split('-').map(e => e[0])
if (k.match(/^v(ersion)?$/) && v.match(/^(o(riginal)?|p(lain)?|l(ine)?)(w|-wordmark)?$/)) {
const fullName = (v.match(/-/) ? v.split('-'): v.split('')).map(e => e[0])
resObject.v = fullName.length === 2 ? fullName.join('') : v[0]
}

Expand Down

0 comments on commit 73e033c

Please sign in to comment.