mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 11:22:41 +01:00
Use the correct expression.
This commit is contained in:
parent
d479784559
commit
2797c2fc5b
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ function getAceFile(callback) {
|
||||||
async.forEach(founds, function (item, callback) {
|
async.forEach(founds, function (item, callback) {
|
||||||
var filename = item.match(/"([^"]*)"/)[1];
|
var filename = item.match(/"([^"]*)"/)[1];
|
||||||
var type = item.match(/INCLUDE_([A-Z]+)/)[1];
|
var type = item.match(/INCLUDE_([A-Z]+)/)[1];
|
||||||
var shortFilename = (filename.match(/^..\/static\/js\/(.*)$/, '')||[])[1];
|
var shortFilename =
|
||||||
|
(filename.match(/^\.\.\/static\/js\/(.*)$/, '') || [])[1];
|
||||||
|
|
||||||
//read the included files
|
//read the included files
|
||||||
if (shortFilename) {
|
if (shortFilename) {
|
||||||
|
|
Loading…
Reference in a new issue