@softwarefactory-project/re-ansi 0.7.4 → 0.7.5

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
@@ -88,6 +88,10 @@ To make a release:
88
88
 
89
89
  ## Changes
90
90
 
91
+ ### 0.7.5
92
+
93
+ - Fix link parsing when escape sequences at end of URL.
94
+
91
95
  ### 0.7.4
92
96
 
93
97
  - Add the missing `Ansi.res.js` to the release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softwarefactory-project/re-ansi",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "ANSI code to HTML",
5
5
  "files": [
6
6
  "README.md",
@@ -15,7 +15,7 @@
15
15
  "homepage": "https://github.com/softwarefactory-project/re-ansi",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+https://softwarefactory-project.io/r/software-factory/re-ansi.git"
18
+ "url": "https://github.com/softwarefactory-project/re-ansi.git"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "rescript",
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\x1b]+)");
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\x1B]+)");
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) {