Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
SQUASHED: AUTO-COMMIT-demos-markdown-test.md,AUTO-COMMIT-src-components-widgets-ast-capabilities.js,AUTO-COMMIT-src-components-widgets-lively-code-mirror-lint.js,
  • Loading branch information
JensLincke committed May 28, 2024
1 parent 0e630e1 commit 8e954fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demos/markdown/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import {AudioRecorder} from "src/client/audio.js"
<script>



var foo = <span>x</span>, b = 3;

</script>
1 change: 0 additions & 1 deletion src/components/widgets/ast-capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,6 @@ ${lineContent}
cleanSource += prefix
cleanSource += code
}
debugger
return cleanSource

} else {
Expand Down
4 changes: 2 additions & 2 deletions src/components/widgets/lively-code-mirror-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ CodeMirror.registerHelper("lint", "markdown", function(text, options) {

function processJS(text, options, found) {

var blocks = text.split(/<script[\s\S]*?>|<\/script>/gi);

var blocks = text.split(/(?<=\<script[^>]*?>)|(?=\<\/script>)/gi);
debugger
let fullCode = ""
let offsets = [{line: -1, offset: 0}]

Expand Down

0 comments on commit 8e954fe

Please sign in to comment.