summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBasil <basil@miranda-ng.org>2013-02-01 06:41:19 +0000
committerBasil <basil@miranda-ng.org>2013-02-01 06:41:19 +0000
commit51804a5fbe97b919ce9e307b8b384970408e2a55 (patch)
tree03b632d47a814f9a2f9392126486287fa89631b4 /tools
parentf2d9c8362ea41af98e6b6176895c287f829fc737 (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')
-rw-r--r--tools/lpgen/lpgen.js6
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;