Skip to content

Commit

Permalink
Rename "RegExp" into "Use regular expressions"
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh committed Aug 26, 2019
1 parent 3079bae commit 95b2cdd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/renderer/StringCellRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class StringCellRenderer implements ICellRendererFactory {
let update: (col: StringColumn) => void;
return {
template: `<form><input type="text" placeholder="Filter ${col.desc.label}..." autofocus value="${(bak instanceof RegExp) ? bak.source : bak}">
<label class="${cssClass('checkbox')}"><input type="checkbox" ${(bak instanceof RegExp) ? 'checked="checked"' : ''}><span>RegExp</span></label>
<label class="${cssClass('checkbox')}"><input type="checkbox" ${(bak instanceof RegExp) ? 'checked="checked"' : ''}><span>Use regular expressions</span></label>
${filterMissingMarkup(bakMissing)}</form>`,
update: (node: HTMLElement) => {
if (!update) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/dialogs/SearchDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class SearchDialog extends ADialog {
}

protected build(node: HTMLElement) {
node.insertAdjacentHTML('beforeend', `<input type="text" size="20" value="" required autofocus placeholder="search... (>= 3 chars)"><label class="${cssClass('checkbox')}"><input type="checkbox"><span>RegExp</span></label>`);
node.insertAdjacentHTML('beforeend', `<input type="text" size="20" value="" required autofocus placeholder="search... (>= 3 chars)"><label class="${cssClass('checkbox')}"><input type="checkbox"><span>Use regular expressions</span></label>`);

const input = <HTMLInputElement>node.querySelector('input[type="text"]')!;
const checkbox = <HTMLInputElement>node.querySelector('input[type="checkbox"]')!;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/dialogs/StringFilterDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class StringFilterDialog extends ADialog {
bak = '';
}
node.insertAdjacentHTML('beforeend', `<input type="text" placeholder="Filter ${this.column.desc.label}..." autofocus value="${(bak instanceof RegExp) ? bak.source : bak}" style="width: 100%">
<label class="${cssClass('checkbox')}"><input type="checkbox" ${(bak instanceof RegExp) ? 'checked="checked"' : ''}><span>RegExp</span></label>
<label class="${cssClass('checkbox')}"><input type="checkbox" ${(bak instanceof RegExp) ? 'checked="checked"' : ''}><span>Use regular expressions</span></label>
${filterMissingMarkup(bakMissing)}`);

const filterMissing = findFilterMissing(node);
Expand Down
2 changes: 1 addition & 1 deletion src/ui/dialogs/groupString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function append(col: StringColumn, node: HTMLElement, dialog: IDi
</label>
<label class="${cssClass('checkbox')}">
<input type="radio" name="regex" value="regex" id="${dialog.idPrefix}RE" ${isRegex ? 'checked' : ''}>
<span>RegExp</span>
<span>Use regular expressions</span>
</label>
<textarea class="${cssClass('textarea')}" required rows="5" placeholder="e.g. Test,a.*" id="${dialog.idPrefix}T">${current.map((d) => typeof d === 'string' ? d : d.source).join('\n')}</textarea>
<button class="${cssClass('dialog-button')}" id="${dialog.idPrefix}A">Apply</button>
Expand Down

0 comments on commit 95b2cdd

Please sign in to comment.