Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
infra
spot
Commits
e10d5414
Commit
e10d5414
authored
Apr 12, 2022
by
Nivesh Krishna
Browse files
replace % with 0.01
parent
6f00ff30
Changes
1
Show whitespace changes
Inline
Side-by-side
searx/plugins/calculator.py
View file @
e10d5414
...
...
@@ -29,7 +29,7 @@ def post_search(request, search):
# Replace all frequently used substitutes
query
=
query
.
replace
(
"x"
,
"*"
)
query
=
query
.
replace
(
"^"
,
"**"
)
query
=
query
.
replace
(
"%"
,
"*0.01"
)
query
=
query
.
replace
(
"%"
,
"*
(
0.01
)*
"
)
# Not going to compute if only one number is present
try
:
...
...
Write
Preview
Supports
Markdown
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