Skip to content

Commit 4b9a5f1

Browse files
author
Julien Bouquillon
authored
fix: carets (#23)
* fix: cosmetic * fix: allow key with caret -
1 parent c158bda commit 4b9a5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ const Editor = () => {
8080
if (data.value && data.value !== formData.value) {
8181
const pemKey = data.pemKey;
8282
const values = {};
83-
if (data.value.match(/^([\w_\d]+)=(.+)$/im)) {
83+
if (data.value.match(/^([\w_-\d]+)=(.+)$/im)) {
8484
data.value.split("\n").forEach((row) => {
85-
const matches = row.match(/^([\w_\d]+)=(.*)$/i);
85+
const matches = row.match(/^([\w_-\d]+)=(.*)$/i);
8686
if (matches) {
8787
values[matches[1]] = matches[2];
8888
}

0 commit comments

Comments
 (0)