Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
9d3d276b
Commit
9d3d276b
authored
Dec 03, 2021
by
Thomas Löffler
Browse files
[TASK] Use booled value as return instead of "1"
parent
c00af786
Pipeline
#20464
passed with stages
in 4 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/ter/Classes/Api/ExtensionVersion.php
View file @
9d3d276b
...
...
@@ -99,7 +99,7 @@ class ExtensionVersion
*/
public
function
isValidVersionNumber
():
bool
{
return
preg_match
(
'/^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$/'
,
$this
->
version
)
===
1
;
return
(
bool
)
preg_match
(
'/^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$/'
,
$this
->
version
);
// alternative (preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $version) !== false) {
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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