Commit Graph

4652 Commits (df205e2335748e3ab265dafb820eda0330ca82c7)

Author SHA1 Message Date
PJ Hampton 74fb241903 Fix over triggering on dates. (#4463) 2017-08-29 15:33:26 -04:00
Rob Emery a46679a254 LHC: Limiting overtriggering (#4462)
* HasLHC: Adding failing tests for improper trigger type

* LHC: We want start to limit overtriggering and only if there isn't other information in the query
2017-08-28 18:09:06 -04:00
Ben Moon 9b128b8dbe Shuffle: Update to use Parse::List Role (#3619)
* Update list parsing/formatting to use role

* Remove tests that duplicate role testing
2017-08-28 18:06:55 -04:00
PJ Hampton d0b3a242db Fix overtriggering. (#4457) 2017-08-28 12:14:07 -04:00
Taite Clark 242793b659 New LHC Apocalypse Checker Instant Answer (#3597)
* Completed perl file, delivering simple response

* The start of a test file

* finish test file, add plain text result.
2017-08-28 16:32:56 +01:00
PJ Hampton 368bab09c0 JS Minifier: Added CSS support, Added Beautify support (#4154)
* Add css support for js minifier.

* Add support for prettifying.

* Fixed tests.

* Removed flag code.

* update triggers to include prettify for css.

* Add case insensitivity.

* Remove .fifty from html
2017-08-28 16:14:21 +01:00
Philip Kirkbride a6bbd9c176 Phonetic: Convert to structured (#4354)
* Make phonetic goodies structured

* add title/subtitle format

* switch title and subtitle

* fix tests
2017-08-27 17:40:54 +01:00
Rob Emery a2b28cba96 AltCalendars: keys on ref is fatal under perl 5.24 (#4418) 2017-08-25 13:13:58 -04:00
Rob Emery 237fd9fa46 Unicode: Fixing 5.24 upgrade -- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^ \s* (?:U \+?|\\(?:u|x{ <-- HERE (?=.*}))) (?<codepoint> [a-f0 (#4427)
-9]{4,6})}? \s* $/ at lib/DDG/Goodie/Unicode.pm line 12
2017-08-25 12:46:36 -04:00
Philip Kirkbride 6774080ae7 make Loan return a structured answer (#4358) 2017-08-24 00:27:28 +01:00
Philip Kirkbride 3105bc1be5 IDN: Structured Answer (#4356)
* idn structured answer, remove tabs

* make returned answer more readable
2017-08-24 00:23:50 +01:00
Nalin Bhardwaj 894ef122c0 Timer: Triggering fixes (#4446)
* Adds join-word of

* Stops triggering on time calculations

* Comment fixes
2017-08-22 20:15:25 +01:00
Lev Kravinsky 4bf20c33b2 Geometry: Add Triangle Area (#4287)
* add triangle objectInfo and svg

* add tests for triangles & fix formula variable name

* add perimeter to triangle

* add height to triangle svg
2017-08-22 20:08:35 +01:00
PJ Hampton ad955d8469 Remove legacy IPS code. (#4451) 2017-08-21 16:09:09 -04:00
PJ Hampton 27e75cf8df Removed legacy HKDK. (#4448) 2017-08-21 16:08:54 -04:00
PJ Hampton 037aceb53c Removes canada post. (#4449) 2017-08-21 16:08:37 -04:00
PJ Hampton dea0663089 Remove legacy DHL code. (#4450) 2017-08-21 16:08:15 -04:00
PJ Hampton c932b6a7a5 Remove legacy laser ship code. (#4452) 2017-08-21 16:07:59 -04:00
PJ Hampton 138cfc5959 Calculator: patch overtriggering (#4439)
* Fix overtrigger on phone numbers.

* Prevent car model overtriggering.

* Stop ambigious overtriggering.

* Add extra test (mintsoft request)

* More handling of car searches

* Strip trailing spaces
2017-08-21 14:44:20 -04:00
Philip Kirkbride 171ef55def Pi: correct parsing for max length (#4441)
* Pi: correct parsing for max length

* small style fix

* fix for pi 1000
2017-08-19 23:21:05 +01:00
Rob Emery b7de67c5bd CssAnimations: keys on scalar is forbidden under perl 5.24 (#4419) 2017-08-19 16:10:44 +01:00
Philip Kirkbride 192047914c sumOfNaturalNumbers: Convert to structured answer (#4255)
* convert sumOfNaturalNumbers to structured answer

* cleaned up syntax
2017-08-17 20:37:02 +01:00
Yashhwanth Ram 2f9fe43d2d Pi : Fix bug and Improve IA (#4217)
* Add more digits to Pi to make it 1000

* Fix CSS to display all digits of Pi requested

* See if this works for you.
2017-08-17 20:12:40 +01:00
Nalin Bhardwaj c11be84d6a Music Chords Diagrams: Fixes/improves triggering (#4085)
* Fixes regex to correctly find values

* Adding multiple naming to instruments

* Fixes #3386

* Adds more sharp/flat aliases for ukulele

* Remove debug print

* Multiple whitespace matching

* Adding support for tabs, chords

* Adding tests
2017-08-15 23:40:48 +01:00
Mariano Simone fe0c18f729 Convert unidecode to use template (#4396)
This is part of #1163
2017-08-15 03:08:36 +05:30
Dragomir Ioan b34a479780 Passphrase, Password: Implemented secure random (#4320)
* Passphrase, Password: Implemented secure random

* Passphrase, Password: Simpler variant of the secure random function

* Passphrase: Removed the initial secure random function

* Passphrase: moved the random generator to its own `sub`
2017-08-14 11:29:20 -04:00
Rob Emery 7b0f4c1fa3 Tips: Smartmatch (~~) is experimental, it is advised to not use it until the behaviour is better defined : http://search.cpan.org/dist/perl-5.18.0/pod/perldelta.pod#The_smartmatch_family_of_features_are_now_experimental (#4424) 2017-08-14 10:06:37 +01:00
Rob Emery e41b5cc966 PrimeFactors: there appears to be an extra character in the tr/// ? (#4426) 2017-08-14 10:05:04 +01:00
Rob Emery f6c8ca8afa Geometry: keys on hashref is fatal under perl 5.24 need to deref into a hash first (#4415) 2017-08-10 12:36:22 +01:00
Zaahir Moolla 96bfdab046 Revert "Roman numerals (improvements) (#4402)" (#4412)
This reverts commit 026279bb6a.
2017-08-09 12:46:46 -04:00
gargaml 026279bb6a Roman numerals (improvements) (#4402)
* First shot at improving roman numeral IA.

Added a new converter.
Added new default settings.
Added some tests.

* Added un upper bound on arabic numbers.

* Remove some typo…

* Added some new triggers.
Allowed uncorrect roman number to load the UI anyway.
Fixed a test.

* Added new triggers.
Fixed regular expressions involved in the UI configuration.
Added new tests.
2017-08-09 11:59:17 +03:00
PJ Hampton 27c5c308de Conversions: Add case sensitivity. Fix ambiguity collisions (#4406)
* Check in work.

* Fix casing ambiguity.

* Fix ambiguity selection.

* break out of outer loop.

* fix YAML
2017-08-08 16:37:13 -04:00
PJ Hampton d17dde90b6 Conversions: US locale defaulting (#4372)
* Add tests to drive development.

Check in work.

Fixed temp triggering ambiguity.

Add experimental conversions US default.

Update the tests.

* Update based on feedback.
2017-08-08 09:46:44 -04:00
PJ Hampton cd0871b9f4 New Timezonetime IA (#4393)
* Check in shivam99aa's work.

* Finish timezone/time IA.

* Refactor Timezonetime.pm

* fix indentation
2017-08-01 12:59:49 -04:00
PJ Hampton 6ba96f8286 Allow asinh and acosh through when triggering. (#4360) 2017-07-18 11:57:22 -04:00
PJ Hampton d5129df6e4 Improve coverage. (#4363) 2017-07-18 11:56:43 -04:00
Philip Kirkbride b082c3013e Palindrome: Convert to Structured (#4352)
* Convert palindrome to structured, tabs, negative tests

* remove comments, simplify subtitle function
2017-07-15 23:14:19 +01:00
PJ Hampton 9c581d9564 Calculator: Various Fixes (#4349)
* Fix weird error message.

* Stop algebra overtriggering.

* Fix overflow error.

* Fixed tests.

* Conclude big patch.

* Patch review bugs.
2017-07-13 18:04:32 -04:00
PJ Hampton 588c354075 New Text Converter IA (#4335)
* Initial commit.

* Prototype up and running.

* Check in work.

* Update work.

* Checking in work.

* Updates based on feedback.

* Code in design.

* Update padding / margin on controls.

* fix mobile styles
2017-07-13 17:46:49 -04:00
Lisa Georgiades b9297e004a Factors: Add support for negative numbers. Add negative cases and tidy (#4245) (#4299)
* Add support for negative numbers. Add negative cases and tidy (#4245)

* Remove extraneous regex match
2017-07-13 13:12:18 -04:00
PJ Hampton 6307864f65 Conversions: Updates UI + Triggering (#4345)
* Fix floz + add n miles.

* Support fractions.

* Update conversions.

* Update based on feedback.
2017-07-13 07:51:16 -04:00
Philip Kirkbride d7f897af3b converting random_name to return structured answer (#4061)
* converting random_name to return structured answer

* altSubtitle typo fix

* altSubtitle typo fix
2017-07-13 07:50:27 -04:00
Philip Kirkbride ab9ce37808 Convert poker goodie to a structured answer, add negative tests (#4350) 2017-07-13 07:43:13 -04:00
Kyle Daruwalla 215857e8dd ColorCodes: Triggers on any query ending in "color <name>" (#4220)
* ColorCodes: Triggers on any query ending in "color <name>"

- Added logic to prevent triggering when excess words are involved in
  the sentence that are not expected

Fixes #3294

* - Fixed regex for filler words to be simpler
- Fixed filler count return statement by removing the double negative

* Simplified regex to catch filler words

* Fixed whitespace changes

* Added more tests for when the IA should not trigger. Existing tests already sufficiently cover when the IA should trigger.
2017-07-12 07:19:17 -04:00
PJ Hampton af0a70222d Calculator: Fixes up trig functions. (#4339)
* Fixes up trig functions.

Replace regex.

* Fixed 1/(x) issues.

* Update dodgy lookahead.
2017-07-10 18:15:49 -04:00
PJ Hampton 8e5cd3f431 Add factorial support. (#4331)
Support factorials. Fix - remove bug.

Fixed a couple of iafd data issues.
2017-07-03 14:02:33 -04:00
PJ Hampton cf799ad23b Conversions: fix spelling. (#4332) 2017-07-02 21:01:55 +01:00
PJ Hampton 0fd68b0912 Conversions: Add expanded triggers. (#4328)
* Add expanded triggers.

* Update triggering / tests.

* Remove convert as a trigger.
2017-06-29 17:29:18 -04:00
PJ Hampton 65f69dab27 Calculator: Various improvements. (#4318)
* Various improvements.

query_nowhitespace removal workaround.

Updated code.

Update code.

Fix exponential state when squaring/cubing

Fix calculator bugs.

* Fix log.

* Various improvements.

* Update variable name.

* Remove debug statements.

* Fix logs/lns on front-end.
2017-06-29 16:55:27 -04:00
PJ Hampton 6457fdeb33 Conversions: Add general triggers. Add aditional aliases. (#4327)
* Add general triggers. Added aditional aliases.

* Remove blocking legacy code.

* Add french word for converter.

* Add missing closing brackets
2017-06-28 11:25:58 -04:00