@codemirror/autocomplete
Advanced tools
Comparing version 0.19.5 to 0.19.6
@@ -0,1 +1,7 @@ | ||
## 0.19.6 (2021-11-12) | ||
### Bug fixes | ||
Fix an issue where parsing a snippet with a field that was labeled only by a number crashed. | ||
## 0.19.5 (2021-11-09) | ||
@@ -2,0 +8,0 @@ |
@@ -1107,3 +1107,3 @@ import { Annotation, Facet, combineConfig, StateEffect, StateField, Prec, EditorSelection, Text } from '@codemirror/state'; | ||
while (m = /[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(line)) { | ||
let seq = m[1] ? +m[1] : null, name = m[2] || m[3], found = -1; | ||
let seq = m[1] ? +m[1] : null, name = m[2] || m[3] || "", found = -1; | ||
for (let i = 0; i < fields.length; i++) { | ||
@@ -1117,3 +1117,3 @@ if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false) | ||
i++; | ||
fields.splice(i, 0, { seq, name: name || null }); | ||
fields.splice(i, 0, { seq, name }); | ||
found = i; | ||
@@ -1120,0 +1120,0 @@ for (let pos of positions) |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "0.19.5", | ||
"version": "0.19.6", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137179