@softwarefactory-project/re-ansi 0.7.2 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -79,8 +79,23 @@ Then build and run tests with `yarn test`.
79
79
 
80
80
  Make sure to read about [React][reason-react] and [Reason][rescript-lang] too.
81
81
 
82
+ To make a release:
83
+
84
+ - Update the version number in packages.json
85
+ - Run `npm run build && npm run bundle`
86
+ - Then: `npm publish`
87
+ - Tag and push the commit
88
+
82
89
  ## Changes
83
90
 
91
+ ### 0.7.4
92
+
93
+ - Add the missing `Ansi.res.js` to the release.
94
+
95
+ ### 0.7.3
96
+
97
+ - Better parse url.
98
+
84
99
  ### 0.7.2
85
100
 
86
101
  - Use a bundle for the published JS library thanks to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softwarefactory-project/re-ansi",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "ANSI code to HTML",
5
5
  "files": [
6
6
  "README.md",
package/src/Ansi.res CHANGED
@@ -153,7 +153,7 @@ module AnsiCode = {
153
153
 
154
154
  // Link management
155
155
  module HttpLink = {
156
- let linkRe = RegExp.fromString("^(http(s)?:\\/\\/[^\\s]+)");
156
+ let linkRe = RegExp.fromString("^(http(s)?:\\/\\/[^\\)>\\s]+)");
157
157
 
158
158
  let get = (txt: string): parser<code> =>
159
159
  linkRe
package/src/Ansi.res.js CHANGED
@@ -407,7 +407,7 @@ var FontCss = {
407
407
  getFontStyleCss,
408
408
  get: get$1
409
409
  };
410
- var linkRe = new RegExp("^(http(s)?:\\/\\/[^\\s]+)");
410
+ var linkRe = new RegExp("^(http(s)?:\\/\\/[^\\)>\\s]+)");
411
411
  function get$2(txt) {
412
412
  return getOr(flatMap(nullable_to_opt(linkRe.exec(txt)), function(res) {
413
413
  return flatMap(res[0], function(url) {