From 5d07468311967c2cfef80ead3d17f00ccde71838 Mon Sep 17 00:00:00 2001 From: Nathanael Brown Date: Thu, 25 Apr 2024 11:03:08 +0100 Subject: [PATCH] Fixed blockSpace regex so that it works now with altered keyfilter --- src/app/showcase/doc/keyfilter/regexdoc.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 = /^[^<>*!]+$/; }` };