Skip to content

Commit

Permalink
Fix legacy import regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Nov 28, 2024
1 parent ecdf1dc commit 997f17c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/viewer/utils/ImportCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const { setSelected } = useProjectStore();
const importCode = ref<string>();
const LEGACY_RX =
/^(?:[a-zA-Z0-9-]+(?:\/ON#\d+)?)(?:,[a-zA-Z0-9-]+(?:\/ON#\d+)?)*$/;
/^(?:[a-zA-Z0-9-_!@&.]+(?:\/ON#\d+)?)(?:,[a-zA-Z0-9-_!@&.]+(?:\/ON#\d+)?)*$/;
function readImportCode() {
let _code = importCode.value?.trim();
Expand Down

0 comments on commit 997f17c

Please sign in to comment.