Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit d1b91d0

Browse files
committed
fix InlineImageViewer example extension
1 parent f40ea05 commit d1b91d0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div>
2-
<div class="filename"><span/></div>
2+
<div class="filename" style="text-align: right; padding-right: 1.5em; line-height: 32px"><span /></div>
33
<img style="display: block; margin: 20px auto; opacity: 0;"/>
4-
</div>
4+
</div>

src/extensions/samples/InlineImageViewer/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ define(function (require, exports, module) {
4747

4848
// If the pos is at the beginning of a name, token will be the
4949
// preceding whitespace or dot. In that case, try the next pos.
50-
if (!/\S/.match(token.string) || token.string === ".") {
50+
if (!/\S/.test(token.string) || token.string === ".") {
5151
token = hostEditor._codeMirror.getTokenAt({line: pos.line, ch: pos.ch + 1}, true);
5252
}
5353

0 commit comments

Comments
 (0)