You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to do this in 16 or if I convert it to string, it doesn't work: ipv4RegEx = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/.toString();
But if I just cast the type, it works again, functionality wise too: ipv4RegEx = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/ as unknown as string;
Environment
Windows 10,
Node: 18.16.0,
npm: 9.6.6,
Using NX version 16.2.1
Reproducer
No response
Angular version
16.0.2
PrimeNG version
16.0.0-rc.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
Chrome 113.0.5672.127
Expected behavior
pKeyFilter to accept strings and RegExp values.
The text was updated successfully, but these errors were encountered:
Describe the bug
pKeyFilter
only accepts strings and no RegExp values.In PrimeNG version 15 this worked:
ipv4RegEx = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/
;template:
If I try to do this in 16 or if I convert it to string, it doesn't work:
ipv4RegEx = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/.toString()
;But if I just cast the type, it works again, functionality wise too:
ipv4RegEx = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/ as unknown as string;
Environment
Windows 10,
Node: 18.16.0,
npm: 9.6.6,
Using NX version 16.2.1
Reproducer
No response
Angular version
16.0.2
PrimeNG version
16.0.0-rc.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
Chrome 113.0.5672.127
Expected behavior
pKeyFilter
to accept strings and RegExp values.The text was updated successfully, but these errors were encountered: