Commit Graph

18 Commits (master)

Author SHA1 Message Date
sdua 3c8e910e54 URLEncode: Remove HTML Encoding of output text 2016-08-24 19:29:20 +00:00
NeoSilky ad58d054b2 URLEncode: enable triggering on 'uri' as well 2016-06-10 08:50:21 +00:00
Ben Moon 83b9bbd6b7 Fix newline at end of file 2016-05-16 14:19:39 +01:00
Ben Moon 5f85cf4121 Update Goodies to use Test::Deep
* Ensure Test::Deep is imported.

* Replace '-ANY-' with ignore()

* Replace regexes with re(...)
2016-05-16 14:07:57 +01:00
Zaahir Moolla 430a48d726 HTML Encode title/subtile for URLEncode and URLDecode 2016-04-06 21:14:54 -04:00
Zach Thompson 73d8f72fc0 Remove id/name from Perl modules and tests 2016-03-18 11:49:33 -06:00
Charlie Garrison 29dc0ea65f Switch to templated answers; update tests
Signed-off-by: Charlie Garrison <cngarrison@gmail.com>
2015-12-27 19:49:40 +11:00
Charlie Garrison 189c9ba37e Add UTF8 tests; fix encoding of UTF8 strings
Signed-off-by: Charlie Garrison <cngarrison@gmail.com>
2015-12-27 02:26:12 +11:00
Charlie Garrison 6b4653b790 Tests and escaping for unicode characters
Signed-off-by: Charlie Garrison <cngarrison@gmail.com>
2015-12-27 00:47:53 +11:00
Matt Miller 53ffe0c3b6 URLEncode: add structured answer 2014-11-15 21:33:00 +02:00
Matt Miller 68fc7c8dec Set explicit caching everywhere.
This explicity sets the caching behavior for all goodies. Goodies which
did not have caching behavior set in their package have had it added.
Similarly for the tests.

This resulted in a number of changes for caching behavior, mostly
moving towards more frequent caching.

I identified three cases where goodies should not be cached. They are when
the result depends upon:

- some random element,
- the time of day or year (as with relative dates), or
- the location of the requesting user

In all other cases, I presumed that the goodies were sufficiently
deterministic in their output to warrant caching.
2014-09-27 10:35:17 -04:00
nishanths 38ec92a4a8 cleanup
- accented_chars changes for the future
- substitutions in the Encode Goodie are now after the ‘else’ block
- regex change to one liners
- tests
2014-06-24 20:19:37 -07:00
nishanths 34d4ad5f01 URL encode now encodes reserved chars 2014-06-24 19:29:03 -07:00
nishanths 23dbc78514 convert indentation to spaces 2014-06-23 22:14:56 -07:00
nishanths ced5244f8b Add css
File level:
- Rename decode module

Changes:
- Add css (not in share folder)
- Improve triggers
- Improve brackets vs. bracket, quotes vs. quote

Other:
- More tests
- Comments
- minor regex for spaces, html decoding
2014-06-23 22:12:47 -07:00
nishanths d4fedd24d4 add zci__mor-at class for links 2014-06-17 02:59:20 +05:30
nishanths 617d27c394 update test files for new triggers 2014-06-17 02:03:57 +05:30
nishanths c0b15421eb Add separate modules HTMLEncode, Decode; URLEncode
– Add HTMLEntitiesDecode.pm and .t
– Add HTMLEntitiesEncode.pm and .t
– Add URLEncode and .t
– Remove HTMLEntities.pm and HTMLEntitiesCode.pm and their test files
2014-06-13 19:29:01 +05:30