Commit 20b89654 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

extension/codeeditor: removed superfluous part of preview path parsing regex

parent 641ca12c
......@@ -159,7 +159,7 @@ define(["jquery", "emitter", "vispa/utils"], function($, Emitter, Utils) {
parsePreview: function(content) {
var preview = content.match(/(?:preview|plot)s?_?(?:path|dir|prefix)\s*[:=]*\s*(["']+)(.+?)\1[^\n"']*\bVISPA(?:[ -_]*codeeditor)?(?:[ -_]*preview)?\b[^\n"']*$/im);
var preview = content.match(/(?:preview|plot)s?_?(?:path|dir|prefix)\s*[:=]*\s*(["']+)(.+?)\1[^\n"']*\bVISPA\b[^\n"']*$/im);
if (!preview) return;
preview = preview[2];
if (!preview.startsWith("/")) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment