Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
59fb1b93
Commit
59fb1b93
authored
Dec 26, 2023
by
Timothy J. Baek
Browse files
fix: checkVersion
parent
032d7c74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/lib/utils/index.ts
src/lib/utils/index.ts
+2
-1
No files found.
src/lib/utils/index.ts
View file @
59fb1b93
...
...
@@ -102,8 +102,9 @@ export const copyToClipboard = (text) => {
};
export
const
checkVersion
=
(
required
,
current
)
=>
{
// Returns true when current version is below required
return
current
===
'
0.0.0
'
?
tru
e
?
fals
e
:
current
.
localeCompare
(
required
,
undefined
,
{
numeric
:
true
,
sensitivity
:
'
case
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment