wcValue -> wildcards (readability)
This commit is contained in:
parent
b6bda7f45f
commit
cc119297e8
|
@ -496,7 +496,7 @@ module.exports = class FileEntry {
|
||||||
if(filter.metaPairs && filter.metaPairs.length > 0) {
|
if(filter.metaPairs && filter.metaPairs.length > 0) {
|
||||||
|
|
||||||
filter.metaPairs.forEach(mp => {
|
filter.metaPairs.forEach(mp => {
|
||||||
if(mp.wcValue) {
|
if(mp.wildcards) {
|
||||||
// convert any * -> % and ? -> _ for SQLite syntax - see https://www.sqlite.org/lang_expr.html
|
// convert any * -> % and ? -> _ for SQLite syntax - see https://www.sqlite.org/lang_expr.html
|
||||||
mp.value = mp.value.replace(/\*/g, '%').replace(/\?/g, '_');
|
mp.value = mp.value.replace(/\*/g, '%').replace(/\?/g, '_');
|
||||||
appendWhereClause(
|
appendWhereClause(
|
||||||
|
|
|
@ -1718,9 +1718,9 @@ function FTNMessageScanTossModule() {
|
||||||
|
|
||||||
const metaPairs = [
|
const metaPairs = [
|
||||||
{
|
{
|
||||||
name : 'short_file_name',
|
name : 'short_file_name',
|
||||||
value : replaces.toUpperCase(), // we store upper as well
|
value : replaces.toUpperCase(), // we store upper as well
|
||||||
wcValue : true, // value may contain wildcards
|
wildcards : true, // value may contain wildcards
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'tic_origin',
|
name : 'tic_origin',
|
||||||
|
|
Loading…
Reference in New Issue