Skip to content

Commit

Permalink
Merge branch 'api'
Browse files Browse the repository at this point in the history
  • Loading branch information
lunatic-fox committed Apr 22, 2024
2 parents 3536504 + 73e033c commit 903e0f6
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 903e0f6

Please sign in to comment.