Skip to content

Commit

Permalink
deactivate Convert Fahrenheit to Celsius.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chelming authored Feb 5, 2025
1 parent b38c828 commit c8ad48a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Parsers/Convert Fahrenheit to Celsius.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ activation_example:30f or 30 degrees Fahrenheit
regex:(?:^|\s)(-?\d{1,3}\.?\d{0,2})°?\s?(?:degrees)?\s?f(?:ahrenheit)?\b
flags:gmi
*/

/*
const regexTest = /(-?\d{1,3}(?:\.\d{1,2})?)°?\s?(?:degrees?)?\s?f(?:ahrenheit)?\b/gi;
const fahrenheitToCelsius = f => ((f - 32) * 5 / 9).toFixed(2);
const formatNumber = num => Number(num).toFixed(2).replace(/\.00$/, '');
Expand All @@ -19,3 +19,4 @@ while ((match = regexTest.exec(current.text)) !== null) {
const conversionMessage = conversions.join('\n');
new x_snc_slackerbot.Slacker().send_chat(current, conversionMessage);
*/

0 comments on commit c8ad48a

Please sign in to comment.