diff --git a/src/app/showcase/doc/keyfilter/regexdoc.ts b/src/app/showcase/doc/keyfilter/regexdoc.ts index 79d4ba028f5..138dd5d5a18 100644 --- a/src/app/showcase/doc/keyfilter/regexdoc.ts +++ b/src/app/showcase/doc/keyfilter/regexdoc.ts @@ -21,8 +21,7 @@ import { Code } from '../../domain/code'; ` }) export class RegexDoc { - blockSpace: RegExp = /[^\s]/; - + blockSpace: RegExp = /^[^\s]+$/; blockChars: RegExp = /^[^<>*!]+$/; code: Code = { @@ -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 = /^[^<>*!]+$/; }` };