Commit graph

28 commits

Author SHA1 Message Date
Jérémie Astori 03e3444a35 Explain the modules of the message parser and add tests
- Add comments and descriptions to:
  - `findChannels.js`
  - `parseStyle`
  - `findLinks`
  - `fill`
  - `anyIntersection`
  - `merge`
  - `parse`
- Minor optimizations to `parseStyle`
- Add tests for `fill`
2017-04-21 20:31:27 +03:00
Jérémie Astori 90f4a94bb2 Use template literals in parse
Also make it output double quotes for consistency with web stuff.
2017-04-21 20:31:27 +03:00
Jérémie Astori 5b4c00d8ca Extract findLinks into its own file and add tests
Tests were taken from 5a249c30b1/test/findLinks.js.
The underlying code is different but the tests are the same.
2017-04-21 20:31:27 +03:00
Bonuspunkt 0b85ded53f Add bonuspunkt's parser
Fixes #15.
Fixes #199.
Fixes #583.
Fixes #654.
Fixes #928.
Fixes #1001.
2017-04-21 20:29:04 +03:00
Jérémie Astori 4363ef4abe Merge pull request #973 from thelounge/xpaw/use-require
Use require() instead of import in client code
2017-03-31 01:41:29 -04:00
Pavel Djundik 3b2e3fc08c Enforce more space and new line rules 2017-03-18 21:40:39 +02:00
Pavel Djundik dcefcd19cb Use require() instead of import in client code
Closes #895
2017-03-18 11:21:18 +02:00
Pavel Djundik fb87bd3a58 Webpack 2016-12-27 19:15:30 +02:00
Pavel Djundik aa02fd5180 Enforce more eslint rules 2016-10-09 17:55:37 -04:00
Jérémie Astori caa46042bf Enforce strict mode across all JS files with ESLint
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00
Pavel Djundik a94b9623f9 Prepend http protocol to www. links in chat
Fixes #406
2016-06-16 17:40:02 +03:00
Pavel Djundik 876ce4bc6e Do not ignore our handlebars plugins in eslint 2016-05-12 16:07:15 +03:00
Pavel Djundik d143542fe5 Add security headers to minimize XSS damage 2016-05-06 11:08:45 +03:00
Pavel Djundik 2bb3951476 Fix message and topic text wrapping 2016-03-22 18:04:34 +02:00
Pavel Djundik 56e1d3fac7 Correctly handle inline channels in messages
Fixes #15 and #11
2016-03-01 11:06:14 +02:00
Pavel Djundik cd92d1640e Simply parse all 0-99 irc colors 2016-01-24 15:57:44 +02:00
Graeme 2274f92833 Update styled items class names 2014-12-10 22:35:17 -05:00
Graeme 635646b0f3 🎊 full mirc colour+style compliance 2014-12-10 06:30:45 -05:00
Mattias Erming a0ed791926 Merge pull request #263 from megawac/style-parser 2014-10-27 22:52:37 +01:00
Mattias Erming 277887382c Merge pull request #253 from codl/fix/bold+color+url
Fix urls preventing proper closure of bold and color tags
2014-10-27 22:48:45 +01:00
megawac 3d5e070c56 Support nested colours 2014-10-25 15:16:54 -04:00
megawac fbe43b3b7a Fix indentation 2014-10-25 15:07:15 -04:00
megawac a53544b44a Support MIRC style terminators (^O) 2014-10-25 15:02:12 -04:00
Corentin Delcourt 44c20b327d fix urls preventing proper closure of bold and color tags 2014-10-20 13:28:29 +02:00
Mattias Erming 5b1820ca2e Fix message parser 2014-10-12 01:53:13 +02:00
Mattias Erming 1b476bfefd Edit color parser 2014-10-11 19:38:53 +02:00
Mattias Erming d86005e84a Added text color 2014-10-11 01:12:03 +02:00
Mattias Erming e4f100a177 Break really long words 2014-09-27 15:01:44 -07:00