diff options
author | dartraiden <wowemuh@gmail.com> | 2017-04-27 16:46:27 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2017-04-27 16:46:27 +0300 |
commit | 72ff17b7779541d67465eb0495756e3bc13b6082 (patch) | |
tree | b6b66140511819626d9364b5a25ac568ca396c00 /tools | |
parent | 33f2aaf57bc3b5a331a37cf922cc23090f9fef10 (diff) |
lpgen.js: turn off useless filter (this filter eats "Yandex.Disk" string)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lpgen/lpgen.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 40aec13a41..d2b96971eb 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -473,18 +473,19 @@ var filter3=/^.+(001|\/value|\*!\*|=)$/g; //filter from Kildor
var filter4=/^((d\s\w)|\[\/?(\w|url|img|size|quote|color)(=\w*)?\]?|(\\\w)|(%\w+%)|(([\w-]+\.)*\.(\w{2,4}|travel|museum|xn--\w+))|\W|\s|\d)+$/gi;
//filter from Kildor for remove filenames and paths.
-var filter5=/^[\w_:%.\\\/*-]+\.\w+$/g;
+//var filter5=/^[\w_:%.\\\/*-]+\.\w+$/g;
//apply filters to our string
test1=filter1.test(string);
test2=filter2.test(string);
test3=filter3.test(string);
test4=filter4.test(string);
-test5=filter5.test(string);
+//test5=filter5.test(string);
//if match (test1) first filter and NOT match other tests, thus string are good, return this string back.
//if (test1 && !test2 && !test3 && !test4 && !test5) {
-if (!test1 && !test2 && !test3 && !test4 && !test5) {
+//if (!test1 && !test2 && !test3 && !test4 && !test5) {
+if (!test1 && !test2 && !test3 && !test4) {
return string;
} else {
//in other case, string is a garbage, put into crap array.
|