mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 19:20:41 +02:00
wcValue -> wildcards (readability)
This commit is contained in:
parent
b6bda7f45f
commit
cc119297e8
2 changed files with 4 additions and 4 deletions
|
@ -496,7 +496,7 @@ module.exports = class FileEntry {
|
|||
if(filter.metaPairs && filter.metaPairs.length > 0) {
|
||||
|
||||
filter.metaPairs.forEach(mp => {
|
||||
if(mp.wcValue) {
|
||||
if(mp.wildcards) {
|
||||
// convert any * -> % and ? -> _ for SQLite syntax - see https://www.sqlite.org/lang_expr.html
|
||||
mp.value = mp.value.replace(/\*/g, '%').replace(/\?/g, '_');
|
||||
appendWhereClause(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue