mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Uses editorconfig to maintain consistent coding styles
Removes the following as they unnecessary /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
This commit is contained in:
parent
9e335a61fd
commit
a2ba1b8189
133 changed files with 18 additions and 259 deletions
6
make.js
6
make.js
|
@ -1,5 +1,3 @@
|
|||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
||||
/* Copyright 2012 Mozilla Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -604,11 +602,9 @@ target.singlefile = function() {
|
|||
};
|
||||
|
||||
function stripCommentHeaders(content, filename) {
|
||||
// Strip out all the vim/license headers.
|
||||
var notEndOfComment = '(?:[^*]|\\*(?!/))+';
|
||||
var reg = new RegExp(
|
||||
'\n/\\* -\\*- Mode' + notEndOfComment + '\\*/\\s*' +
|
||||
'(?:/\\*' + notEndOfComment + '\\*/\\s*|//(?!#).*\n\\s*)+' +
|
||||
'\n(?:/\\*' + notEndOfComment + '\\*/\\s*|//(?!#).*\n\\s*)+' +
|
||||
'\'use strict\';', 'g');
|
||||
content = content.replace(reg, '');
|
||||
return content;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue