Merge pull request +15706 from c9/ide-fix-various

fix small ide issues
pull/460/head
Matthijs van Henten 2017-10-12 15:43:31 +02:00 zatwierdzone przez GitHub
commit 31b2dcf911
4 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -346,7 +346,9 @@ define(function(require, exports, module) {
path: "user/language/@hints",
position: 1000
},
"Ignore Messages Matching <a href=\"http://en.wikipedia.org/wiki/Regular_expression\" target=\"blank\">Regex</a>": {
"Ignore Messages Matching Regex": {
title: [null, "Ignore Messages Matching ", ["a", {
href: "http://en.wikipedia.org/wiki/Regular_expression", target: "blank"}, "Regex"]],
type: "textbox",
path: "user/language/@ignoredMarkers",
position: 3000

Wyświetl plik

@ -372,7 +372,7 @@ define(function(require, exports, module) {
});
}
else if (options.url && /\.json$/.test(root)) {
require(["text!" + options.id + "/" + root], function(value) {
require(["text!" + options.url + "/" + root], function(value) {
try {
var json = JSON.parse(value);
} catch (e) {

Wyświetl plik

@ -29,7 +29,7 @@ define(function(require, exports, module) {
index: 10,
divider: true,
selector: function(path) {
return /\.(?:html|htm|xhtml|pdf|svg)$|^https?\:\/\//.test(path);
return /\.(?:html|htm|xhtml|pdf|svg|mov|mp[34g]|ogg|webm|wma)$|^https?\:\/\//.test(path);
}
});

Wyświetl plik

@ -36,7 +36,7 @@ define(function(require, exports, module) {
var basename = require("path").basename;
var extensions = ["pdf", "swf"];
var extensions = ["pdf", "swf", "mov", "mp3", "mp4", "mpg", "ogg", "webm", "wma"];
var previewUrl = options.previewUrl.replace(/^[/]/, function() {
return c9.location.replace(/^(\w+:[/]+[^/#?]+).*/, "$1/");