Page MenuHomeWickedGov Phorge

searchQuery.js
No OneTemporary

Size
510 B
Referenced Files
None
Subscribers
None

searchQuery.js

function searchQuery() {
return {
value: null,
valueHtml: null,
isValid: false,
setValue: function ( s ) {
this.value = s;
this.valueHtml = mw.html.escape( s );
this.isValid = this.checkValid( s );
},
checkValid: function ( s ) {
return s.length > 0;
},
replace: function ( pattern, s ) {
this.setValue( this.value.replace( pattern, s ) );
},
remove: function ( pattern ) {
this.replace( pattern, '' );
}
};
}
/** @module searchQuery */
module.exports = searchQuery;

File Metadata

Mime Type
text/plain
Expires
Oct 4 2026, 23:22 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0c/62/483c861b26cd890ee7752504659d
Default Alt Text
searchQuery.js (510 B)

Event Timeline