securemark 0.275.1 → 0.275.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.275.2
4
+
5
+ - Fix identifiers.
6
+
3
7
  ## 0.275.1
4
8
 
5
9
  - Fix identifiers.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! securemark v0.275.1 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED License */
1
+ /*! securemark v0.275.2 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED License */
2
2
  (function webpackUniversalModuleDefinition(root, factory) {
3
3
  if(typeof exports === 'object' && typeof module === 'object')
4
4
  module.exports = factory(require("Prism"), require("DOMPurify"));
@@ -6291,7 +6291,7 @@ exports.indexer = (0, combinator_1.creation)((0, combinator_1.fmap)((0, combinat
6291
6291
  // Indexer is invisible but invalids must be visible.
6292
6292
  ([el]) => el.getElementsByClassName('invalid').length === 0), ([el]) => [(0, dom_1.html)('span', {
6293
6293
  class: 'indexer',
6294
- 'data-index': el.getAttribute('href').slice(1).replace(/^\w+:\w*:/, '')
6294
+ 'data-index': el.getAttribute('href').slice(1).replace(/^[^:]*:[^:]*:/, '')
6295
6295
  })]));
6296
6296
 
6297
6297
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "securemark",
3
- "version": "0.275.1",
3
+ "version": "0.275.2",
4
4
  "description": "Secure markdown renderer working on browsers for user input data.",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/falsandtru/securemark",
@@ -15,5 +15,8 @@ export const indexer: ExtensionParser.IndexerParser = creation(fmap(verify(surro
15
15
  // Indexer is invisible but invalids must be visible.
16
16
  ([el]) => el.getElementsByClassName('invalid').length === 0),
17
17
  ([el]) => [
18
- html('span', { class: 'indexer', 'data-index': el.getAttribute('href')!.slice(1).replace(/^\w+:\w*:/, '') }),
18
+ html('span', {
19
+ class: 'indexer',
20
+ 'data-index': el.getAttribute('href')!.slice(1).replace(/^[^:]*:[^:]*:/, ''),
21
+ }),
19
22
  ]));