Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OGC
node-3DPS
Commits
9bbe2d95
Commit
9bbe2d95
authored
Jul 25, 2021
by
Athanasios
Browse files
refactor custom sanitizers
parent
84cdb6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/boundingbox.js
deleted
100644 → 0
View file @
84cdb6a4
const
isValid
=
(
value
)
=>
{
let
tokens
=
value
.
split
(
"
,
"
);
tokens
=
tokens
.
map
(
token
=>
parseFloat
(
token
));
if
(
tokens
[
0
]
<
tokens
[
2
]
&&
tokens
[
1
]
<
tokens
[
3
])
{
return
true
;
}
return
false
;
}
module
.
exports
=
{
isValid
};
\ No newline at end of file
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