diff options
author | Basil <basil@miranda-ng.org> | 2013-02-01 06:41:19 +0000 |
---|---|---|
committer | Basil <basil@miranda-ng.org> | 2013-02-01 06:41:19 +0000 |
commit | 51804a5fbe97b919ce9e307b8b384970408e2a55 (patch) | |
tree | 03b632d47a814f9a2f9392126486287fa89631b4 /tools/lpgen/lpgen.js | |
parent | f2d9c8362ea41af98e6b6176895c287f829fc737 (diff) |
same trick to parse authors in same MirOTR and ZeroNotify plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@3386 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen/lpgen.js')
-rw-r--r-- | tools/lpgen/lpgen.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 4ff40f445a..faae6f55aa 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -512,9 +512,9 @@ versionfile_stream=FSO.GetFile(VersionFile).OpenAsTextStream(ForReading, Tristat //read file fully into var allstrings
allstrings=versionfile_stream.ReadAll();
//define RegExp for defines.
-var filename=/(?:#define\s+__FILENAME\s+")(.+)(?=")/m;
-var pluginname=/(?:#define\s+__PLUGIN_NAME\s+")(.+)(?=")/i;
-var author=/(?:#define\s+__AUTHORS?\s+")(.+)(?=")/i;
+var filename=/(?:#define\s+_*?FILENAME\s+")(.+)(?=")/m;
+var pluginname=/(?:#define\s+_*?PLUGIN_NAME\s+")(.+)(?=")/i;
+var author=/(?:#define\s+_*?AUTHORS?\s+")(.+)(?=")/i;
var MAJOR_VERSION=/(?:#define\s+_*?(?:MAJOR_VERSION|VER_MAJOR)\s+)(\d+)/i;
var MINOR_VERSION=/(?:#define\s+_*?(?:MINOR_VERSION|VER_MINOR)\s+)(\d+)/i;
var RELEASE_NUM=/(?:#define\s+_*?(?:RELEASE_NUM|VER_REVISION|VER_RELEASE)\s+)(\d+)/i;
|