Skip to content

Commit

Permalink
Fixed blockSpace regex so that it works now with altered keyfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrown-ScottLogic committed Apr 25, 2024
1 parent 82b6b60 commit 5d07468
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/showcase/doc/keyfilter/regexdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import { Code } from '../../domain/code';
`
})
export class RegexDoc {
blockSpace: RegExp = /[^\s]/;

blockSpace: RegExp = /^[^\s]+$/;
blockChars: RegExp = /^[^<>*!]+$/;

code: Code = {
Expand All @@ -49,8 +48,8 @@ import { Component } from '@angular/core';
templateUrl: './key-filter-reg-exp-demo.html'
})
export class KeyFilterRegExpDemo {
blockSpace: RegExp = /[^\s]/;
blockSpace: RegExp = /[^\s]/;
blockChars: RegExp = /^[^<>*!]+$/;
}`
};
Expand Down

0 comments on commit 5d07468

Please sign in to comment.