Skip to content

Commit

Permalink
Numbers => integers
Browse files Browse the repository at this point in the history
  • Loading branch information
AsbjoernJC committed May 21, 2024
1 parent 61258fb commit 2ea866d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions TimeTrace/src/components/logtable/searcher/AdvancedSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ function AdvancedSearch({searchQuery, setSearchQuery, searchLog}: SearcherProps)
<div className="flex">
<div className="relative flex flex-col w-full gap-2">
<div id="predefined-re" className="flex self-center gap-2">
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find greater or equal numbers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.InclusiveOver)}>Greater or Equal</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find greater numbers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.StrictOver)}>Greater</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find numbers in an interval." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.Interval)}>Interval</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find smaller numbers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.StrictUnder)}>Smaller</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find smaller or equal numbers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.InclusiveUnder)}>Smaller or Equal</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find greater or equal integers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.InclusiveOver)}>Greater or Equal</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find greater integers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.StrictOver)}>Greater</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find integers in an interval." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.Interval)}>Interval</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find smaller integers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.StrictUnder)}>Smaller</Button>
<Button buttonStyle={ButtonStyle.Modal} tooltip="RE to find smaller or equal integers." style={{style: 'px-4 py-2'}} onClick={() => createModalObject(PredefinedREType.InclusiveUnder)}>Smaller or Equal</Button>
</div>
<div className="relative flex">
<Button
Expand Down
10 changes: 5 additions & 5 deletions TimeTrace/src/components/predefined-res/PredefinedREs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface IntervalInput {

export class IntervalClass implements PredefinedRE {
public input: IntervalInput;
public title: string = 'Find numbers between an interval';
public title: string = 'Find integers between an interval';

public insertRE(): string {
return `${this.input.prependedText}${generateIntervalRegex(this.input.lowerBound, this.input.upperBound)}`;
Expand Down Expand Up @@ -65,13 +65,13 @@ export class OverClass implements PredefinedRE {

public constructor(includesLowerBound: boolean, input: OverInput = { prependedText: '', lowerBound: '' }, negateRe: boolean = false) {
this.includesLowerBound = includesLowerBound;
this.title = !includesLowerBound ? 'Find numbers greater than some value' : 'Find numbers greater or equal to some value';
this.title = !includesLowerBound ? 'Find integers greater than some value' : 'Find integers greater or equal to some value';
this.input = input;
this.negateRe = negateRe;
this.label = `Lower Bound (numbers ${!this.includesLowerBound ? "larger than" : "larger or equal"})`
this.label = `Lower Bound (integers ${!this.includesLowerBound ? "larger than" : "larger or equal"})`
if(negateRe) {
this.title = `Find numbers ${includesLowerBound ? 'under' : 'under and including'} some value`;
this.label = `Lower Bound (numbers ${this.includesLowerBound ? "under" : "under and including"})`
this.title = `Find integers ${includesLowerBound ? 'under' : 'under and including'} some value`;
this.label = `Lower Bound (integers ${this.includesLowerBound ? "under" : "under and including"})`
}
}
}

0 comments on commit 2ea866d

Please sign in to comment.